Class FileACLFilterGenerator

java.lang.Object
com.illumon.iris.security.FileACLFilterGenerator
All Implemented Interfaces:
FilterGenerator

public class FileACLFilterGenerator
extends Object
implements FilterGenerator
Generates a FileACLFilter, which, unlike other filters, actually controls filesystem access via the Java security model, if so configured.
  • Constructor Details

    • FileACLFilterGenerator

      public FileACLFilterGenerator​(String path, String actions)
      Create a FileACLFilterGenerator that grants access to the specified actions on the specified filesystem path.
      Parameters:
      path - The filesystem path to be granted, following the same conventions as a FilePermission, such as a terminal "/*" meaning 'all files in the specified directory, and a terminal "/-" meaning "all files in the specified directory or any subdirectories."
      actions - The actions to be permitted on the specified path, following the same conventions as a FilePermission.
  • Method Details

    • generateFilter

      public SelectFilter[] generateFilter​(Database database, PermissionFilterProvider permissionFilterProvider, com.fishlib.auth.UserContext userContext, String namespace, String tableName)
      Create a single-element array of SelectFilters, containing a single FileACLFilter with the specified path and actions.
      Specified by:
      generateFilter in interface FilterGenerator
      Parameters:
      database - Ignored
      permissionFilterProvider - Ignored
      userContext - Ignored
      namespace - Ignored
      tableName - Ignored
      Returns:
      A single-element SelectFilter array, containing a single FileACLFilter with the specified path and actions.
    • generateFilter

      public SelectFilter[] generateFilter​(Database database, PermissionFilterProvider permissionFilterProvider, com.fishlib.auth.UserContext userContext, String namespace, String tableName, boolean isRefreshing)
      Create a single-element array of SelectFilters, containing a single FileACLFilter with the specified path and actions.
      Specified by:
      generateFilter in interface FilterGenerator
      Parameters:
      database - Ignored
      permissionFilterProvider - Ignored
      userContext - Ignored
      namespace - Ignored
      tableName - Ignored
      isRefreshing - Ignored
      Returns:
      A single-element SelectFilter array, containing a single FileACLFilter with the specified path and actions.