Class DbAclProviderFactory
java.lang.Object
com.illumon.iris.db.v2.permissions.DbAclProviderFactory
public class DbAclProviderFactory extends Object
Class to centralize selection of DbAclProvider implementations
-
Constructor Summary
Constructors Constructor Description DbAclProviderFactory()
-
Method Summary
Modifier and Type Method Description static DbAclProvider
getDbAclProvider(com.fishlib.io.logger.Logger log)
Returns aDbAclProvider
based on the configuration of IrisDB.groupProvider.static DbAclProvider
getDbAclProvider(com.fishlib.io.logger.Logger log, boolean nullOnNoMatch)
Returns aDbAclProvider
based on the configuration of IrisDB.groupProvider.static DbAclProvider
getDbAclProvider(com.fishlib.io.logger.Logger log, boolean nullOnNoMatch, boolean readOnly)
Returns aDbAclProvider
based on the configuration of IrisDB.groupProvider.
-
Constructor Details
-
DbAclProviderFactory
public DbAclProviderFactory()
-
-
Method Details
-
getDbAclProvider
Returns aDbAclProvider
based on the configuration of IrisDB.groupProvider.- Parameters:
log
- TheLogger
to pass to the DbAclProvider constructor.- Returns:
- a
DbAclProvider
or null
-
getDbAclProvider
public static DbAclProvider getDbAclProvider(@NotNull com.fishlib.io.logger.Logger log, boolean nullOnNoMatch)Returns aDbAclProvider
based on the configuration of IrisDB.groupProvider.- Parameters:
log
- TheLogger
to 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
DbAclProvider
or null
-
getDbAclProvider
public static DbAclProvider getDbAclProvider(@NotNull com.fishlib.io.logger.Logger log, boolean nullOnNoMatch, boolean readOnly)Returns aDbAclProvider
based on the configuration of IrisDB.groupProvider.- Parameters:
log
- TheLogger
to 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
DbAclProvider
or null
-