|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<PermissionProcessor>
edu.internet2.middleware.grouper.permissions.PermissionProcessor
public enum PermissionProcessor
if processing permissions, you can filter out either redundant permissions (find best in set), or do that and filter out redundant roles (if flattening roles) (find best in set)
Enum Constant Summary | |
---|---|
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 |
Method Summary | |
---|---|
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(java.util.Collection<PermissionEntry> permissionEntrySet,
java.util.Map<java.lang.String,java.lang.Object> limitEnvVarsString,
java.util.Map<PermissionEntry,java.util.Set<PermissionLimitBean>> permissionLimitBeanMap)
process limits on some permission entries |
abstract void |
processPermissions(java.util.Collection<PermissionEntry> permissionEntrySet,
java.util.Map<java.lang.String,java.lang.Object> limitEnvVars)
filer permissions out which can be pruned based on the type of processor |
static PermissionProcessor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static PermissionProcessor |
valueOfIgnoreCase(java.lang.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. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
public static PermissionProcessor[] values()
for (PermissionProcessor c : PermissionProcessor.values()) System.out.println(c);
public static PermissionProcessor valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic abstract void processPermissions(java.util.Collection<PermissionEntry> permissionEntrySet, java.util.Map<java.lang.String,java.lang.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(java.util.Collection<PermissionEntry> permissionEntrySet, java.util.Map<java.lang.String,java.lang.Object> limitEnvVarsString, java.util.Map<PermissionEntry,java.util.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(java.lang.String theString, boolean exceptionOnNull)
theString
- exceptionOnNull
- will not allow null or blank entries
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |