Class AclExporter
java.lang.Object
com.illumon.iris.db.v2.permissions.AclPorter
com.illumon.iris.db.v2.permissions.AclExporter
A tool for exporting all, or parts, of the ACL database to a file that can be re-imported using
AclImporter
-
Field Summary
Fields inherited from class com.illumon.iris.db.v2.permissions.AclPorter
dbAclGuiHelper, dbAclProvider, dbAclWriter, log
-
Constructor Summary
ConstructorsConstructorDescriptionAclExporter
(DbAclProvider dbAclProvider, DbAclGuiHelper dbAclGuiHelper, com.fishlib.io.logger.Logger log) Create anAclExporter
to from the provided components. -
Method Summary
Modifier and TypeMethodDescriptionvoid
exportAcls
(String filename, String... types) Export the ACL data to the specified file.Methods inherited from class com.illumon.iris.db.v2.permissions.AclPorter
deserialize, processTypes, serialize
-
Constructor Details
-
AclExporter
public AclExporter(@NotNull DbAclProvider dbAclProvider, @NotNull DbAclGuiHelper dbAclGuiHelper, @NotNull com.fishlib.io.logger.Logger log) Create anAclExporter
to from the provided components.- Parameters:
dbAclProvider
- the acl ProviderdbAclGuiHelper
- the gui helperlog
- the logger.
-
-
Method Details
-
exportAcls
Export the ACL data to the specified file. Iftypes
are omitted, the entire database is exported.- Parameters:
filename
- the file to export totypes
- the ACL types to export. SeeAclEntryTypes
- Throws:
IOException
- if export fails
-