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 Details

  • Method Details

    • getDbAclProvider

      public static DbAclProvider getDbAclProvider​(@NotNull com.fishlib.io.logger.Logger log)
      Returns a DbAclProvider based on the configuration of IrisDB.groupProvider.
      Parameters:
      log - The Logger 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 a DbAclProvider based on the configuration of IrisDB.groupProvider.
      Parameters:
      log - The Logger 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 a DbAclProvider based on the configuration of IrisDB.groupProvider.
      Parameters:
      log - The Logger 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