Package com.illumon.iris.security
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 Summary
Constructors Constructor Description FileACLFilterGenerator(String path, String actions)
Create a FileACLFilterGenerator that grants access to the specified actions on the specified filesystem path. -
Method Summary
Modifier and Type Method Description 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.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.
-
Constructor Details
-
FileACLFilterGenerator
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 interfaceFilterGenerator
- Parameters:
database
- IgnoredpermissionFilterProvider
- IgnoreduserContext
- Ignorednamespace
- IgnoredtableName
- 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 interfaceFilterGenerator
- Parameters:
database
- IgnoredpermissionFilterProvider
- IgnoreduserContext
- Ignorednamespace
- IgnoredtableName
- IgnoredisRefreshing
- Ignored- Returns:
- A single-element SelectFilter array, containing a single FileACLFilter with the specified path and actions.
-