Class AclImporter
java.lang.Object
com.illumon.iris.db.v2.permissions.AclPorter
com.illumon.iris.db.v2.permissions.AclImporter
A utility class for importing ACLS from an XML file generated by
AclExporter
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.illumon.iris.db.v2.permissions.AclPorter
dbAclGuiHelper, dbAclProvider, dbAclWriter, log
-
Constructor Summary
ConstructorsConstructorDescriptionAclImporter
(DbAclWriter dbAclWriter, DbAclProvider dbAclProvider, DbAclGuiHelper dbAclGuiHelper, AclImporter.Mode importMode, com.fishlib.io.logger.Logger log) Create an ACLImporter for importing files from anAclExporter
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static String[]
Get the default set of protected users.void
importAcls
(Acl acl, String... types) void
importAcls
(String filename, String... types) Import the ACLs from the file.void
setProtectedUsers
(String... users) Set the protected users.Methods inherited from class com.illumon.iris.db.v2.permissions.AclPorter
deserialize, processTypes, serialize
-
Field Details
-
ACL_IMPORTER_PROTECTED_USERS_PROPERTY
- See Also:
-
-
Constructor Details
-
AclImporter
public AclImporter(@NotNull DbAclWriter dbAclWriter, @NotNull DbAclProvider dbAclProvider, @NotNull DbAclGuiHelper dbAclGuiHelper, @NotNull AclImporter.Mode importMode, @NotNull com.fishlib.io.logger.Logger log) Create an ACLImporter for importing files from anAclExporter
- Parameters:
dbAclWriter
- the acl writerdbAclProvider
- ther acl providerdbAclGuiHelper
- the gui helperimportMode
- the import modelog
- the logger
-
-
Method Details
-
getDefaultProtectedUsers
Get the default set of protected users.- Returns:
- the default set of protected users.
-
importAcls
Import the ACLs from the file.- Parameters:
filename
- the file name.types
- the types to import. SeeAclEntryTypes
- Throws:
IOException
AclStoreException
-
importAcls
- Throws:
AclStoreException
-
setProtectedUsers
Set the protected users. When importing ACLs, keys for these users will not be modified.- Parameters:
users
- the users to protect
-
deleteAllAclData
- Throws:
AclStoreException
-