Class AclExporter

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

public class AclExporter extends AclPorter
A tool for exporting all, or parts, of the ACL database to a file that can be re-imported using AclImporter
  • Constructor Details

    • AclExporter

      public AclExporter(@NotNull DbAclProvider dbAclProvider, @NotNull DbAclGuiHelper dbAclGuiHelper, @NotNull com.fishlib.io.logger.Logger log)
      Create an AclExporter to from the provided components.
      Parameters:
      dbAclProvider - the acl Provider
      dbAclGuiHelper - the gui helper
      log - the logger.
  • Method Details

    • exportAcls

      public void exportAcls(@NotNull String filename, @NotNull String... types) throws IOException
      Export the ACL data to the specified file. If types are omitted, the entire database is exported.
      Parameters:
      filename - the file to export to
      types - the ACL types to export. See AclEntryTypes
      Throws:
      IOException - if export fails