public enum PermissionProcessor extends Enum<PermissionProcessor>
Enum Constant and Description |
---|
FILTER_REDUNDANT_PERMISSIONS
this will see if there are two rows with the same
role/subject/permissionName/action, pick the best one, and remove the others
|
FILTER_REDUNDANT_PERMISSIONS_AND_PROCESS_LIMITS
this will see if there are two rows with the same
role/subject/permissionName/action, pick the best one, and remove the others
|
FILTER_REDUNDANT_PERMISSIONS_AND_ROLES
if there are two entries for the same subject/permissionName/action in different roles,
it will pick the best one, and remove the others
|
FILTER_REDUNDANT_PERMISSIONS_AND_ROLES_AND_PROCESS_LIMITS
if there are two entries for the same subject/permissionName/action in different roles, it will pick the best one, and remove the others
|
PROCESS_LIMITS
this will look at the permissions and see if there are limits assigned and see if the limits
will rule out any of the entries
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
isLimitProcessor()
if this is a limit processor
|
abstract PermissionProcessor |
nonLimitPermissionProcesssor()
if this is a limit processor, get the equivalent which isnt
|
static void |
processLimits(Collection<PermissionEntry> permissionEntrySet,
Map<String,Object> limitEnvVarsString,
Map<PermissionEntry,Set<PermissionLimitBean>> permissionLimitBeanMap)
process limits on some permission entries
|
abstract void |
processPermissions(Collection<PermissionEntry> permissionEntrySet,
Map<String,Object> limitEnvVars)
filer permissions out which can be pruned based on the type of processor
|
static PermissionProcessor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PermissionProcessor |
valueOfIgnoreCase(String theString,
boolean exceptionOnNull)
do a case-insensitive matching
|
static PermissionProcessor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PermissionProcessor FILTER_REDUNDANT_PERMISSIONS
public static final PermissionProcessor FILTER_REDUNDANT_PERMISSIONS_AND_ROLES
public static final PermissionProcessor FILTER_REDUNDANT_PERMISSIONS_AND_PROCESS_LIMITS
public static final PermissionProcessor FILTER_REDUNDANT_PERMISSIONS_AND_ROLES_AND_PROCESS_LIMITS
public static final PermissionProcessor PROCESS_LIMITS
public static PermissionProcessor[] values()
for (PermissionProcessor c : PermissionProcessor.values()) System.out.println(c);
public static PermissionProcessor valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract void processPermissions(Collection<PermissionEntry> permissionEntrySet, Map<String,Object> limitEnvVars)
permissionEntrySet
- limitEnvVars
- if processing limits, pass in a map of limits. The name is the
name of the variable, and the value is the value. Note, you can typecast the
values by putting a valid type in parens in front of the param name. e.g.
name: (int)amount, value: 50public static void processLimits(Collection<PermissionEntry> permissionEntrySet, Map<String,Object> limitEnvVarsString, Map<PermissionEntry,Set<PermissionLimitBean>> permissionLimitBeanMap)
permissionEntrySet
- limitEnvVarsString
- can have types in there or notpermissionLimitBeanMap
- the map of permission entry to its associated limits
you can get that with PermissionLimitBean.findPermissionLimits()public abstract PermissionProcessor nonLimitPermissionProcesssor()
public abstract boolean isLimitProcessor()
public static PermissionProcessor valueOfIgnoreCase(String theString, boolean exceptionOnNull)
theString
- exceptionOnNull
- will not allow null or blank entriesCopyright © 2016 Internet2. All rights reserved.