Class DbAclProviderFactory
java.lang.Object
com.illumon.iris.db.v2.permissions.DbAclProviderFactory
Class to centralize selection of DbAclProvider implementations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DbAclProvidergetDbAclProvider(com.fishlib.io.logger.Logger log) Returns aDbAclProviderbased on the configuration of IrisDB.groupProvider.static DbAclProvidergetDbAclProvider(com.fishlib.io.logger.Logger log, boolean nullOnNoMatch) Returns aDbAclProviderbased on the configuration of IrisDB.groupProvider.static DbAclProvidergetDbAclProvider(com.fishlib.io.logger.Logger log, boolean nullOnNoMatch, boolean readOnly) Returns aDbAclProviderbased on the configuration of IrisDB.groupProvider.
-
Constructor Details
-
DbAclProviderFactory
public DbAclProviderFactory()
-
-
Method Details
-
getDbAclProvider
Returns aDbAclProviderbased on the configuration of IrisDB.groupProvider.- Parameters:
log- TheLoggerto pass to the DbAclProvider constructor.- Returns:
- a
DbAclProvideror null
-
getDbAclProvider
public static DbAclProvider getDbAclProvider(@NotNull com.fishlib.io.logger.Logger log, boolean nullOnNoMatch) Returns aDbAclProviderbased on the configuration of IrisDB.groupProvider.- Parameters:
log- TheLoggerto pass to the DbAclProvider constructor.nullOnNoMatch- Whether to return a null (true) or throw an exception (false) if not match is found for the IrisDB.groupProvider value.- Returns:
- a
DbAclProvideror null
-
getDbAclProvider
public static DbAclProvider getDbAclProvider(@NotNull com.fishlib.io.logger.Logger log, boolean nullOnNoMatch, boolean readOnly) Returns aDbAclProviderbased on the configuration of IrisDB.groupProvider.- Parameters:
log- TheLoggerto pass to the DbAclProvider constructor.nullOnNoMatch- Whether to return a null (true) or throw an exception (false) if not match is found for the IrisDB.groupProvider value.readOnly- Whether to create a readOnly (true) or readWrite provider (false).- Returns:
- a
DbAclProvideror null
-