Class AclImporter

java.lang.Object
com.illumon.iris.db.v2.permissions.AclPorter
com.illumon.iris.db.v2.permissions.AclImporter

public class AclImporter extends AclPorter
A utility class for importing ACLS from an XML file generated by AclExporter
  • Field Details

    • ACL_IMPORTER_PROTECTED_USERS_PROPERTY

      public static final String 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 an AclExporter
      Parameters:
      dbAclWriter - the acl writer
      dbAclProvider - ther acl provider
      dbAclGuiHelper - the gui helper
      importMode - the import mode
      log - the logger
  • Method Details

    • getDefaultProtectedUsers

      public static String[] getDefaultProtectedUsers()
      Get the default set of protected users.
      Returns:
      the default set of protected users.
    • importAcls

      public void importAcls(String filename, String... types) throws IOException, AclStoreException
      Import the ACLs from the file.
      Parameters:
      filename - the file name.
      types - the types to import. See AclEntryTypes
      Throws:
      IOException
      AclStoreException
    • importAcls

      public void importAcls(Acl acl, String... types) throws AclStoreException
      Throws:
      AclStoreException
    • setProtectedUsers

      public void setProtectedUsers(String... users)
      Set the protected users. When importing ACLs, keys for these users will not be modified.
      Parameters:
      users - the users to protect
    • deleteAllAclData

      public void deleteAllAclData() throws AclStoreException
      Throws:
      AclStoreException