Enum Class PermissionHeuristic.PermissionHeuristicType
java.lang.Object
java.lang.Enum<PermissionHeuristic.PermissionHeuristicType>
edu.internet2.middleware.grouper.permissions.PermissionHeuristic.PermissionHeuristicType
- All Implemented Interfaces:
Serializable
,Comparable<PermissionHeuristic.PermissionHeuristicType>
,Constable
- Enclosing class:
- PermissionHeuristic
public static enum PermissionHeuristic.PermissionHeuristicType
extends Enum<PermissionHeuristic.PermissionHeuristicType>
which type of heuristic (not including depth)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription(58) action depth 1 (56) action depth 2 (54) action depth 3 (2) action depth 29(1) allow(7200) assignment to user as opposed to group(864000) person/role assignment(3600) direct resource assignment (120*30) (120) indirect direct resource assignment depth 29(432000) direct role assignment (14400 * 30) (14400) role assignment with role depth 29 -
Method Summary
Modifier and TypeMethodDescriptionabstract long
maxScore()
max score if this is assigned with 0 depth (if applicable) and nothing else)abstract long
minScore()
min score if this is assigned with 29 depth (if applicable) and nothing else, assuming 30 is max depthReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
personRole
(864000) person/role assignment -
role
(432000) direct role assignment (14400 * 30) (14400) role assignment with role depth 29 -
assignedToUserNotGroup
(7200) assignment to user as opposed to group -
resource
(3600) direct resource assignment (120*30) (120) indirect direct resource assignment depth 29 -
action
(58) action depth 1 (56) action depth 2 (54) action depth 3 (2) action depth 29 -
allow
(1) allow
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
maxScore
public abstract long maxScore()max score if this is assigned with 0 depth (if applicable) and nothing else)- Returns:
- max score
-
minScore
public abstract long minScore()min score if this is assigned with 29 depth (if applicable) and nothing else, assuming 30 is max depth- Returns:
- max score
-