edu.internet2.middleware.grouper.permissions
Enum PermissionHeuristic.PermissionHeuristicType

java.lang.Object
  extended by java.lang.Enum<PermissionHeuristic.PermissionHeuristicType>
      extended by edu.internet2.middleware.grouper.permissions.PermissionHeuristic.PermissionHeuristicType
All Implemented Interfaces:
Serializable, Comparable<PermissionHeuristic.PermissionHeuristicType>
Enclosing class:
PermissionHeuristic

public static enum PermissionHeuristic.PermissionHeuristicType
extends Enum<PermissionHeuristic.PermissionHeuristicType>

which type of heuristic (not including depth)

Author:
mchyzer

Enum Constant Summary
action
          (58) action depth 1 (56) action depth 2 (54) action depth 3 (2) action depth 29
allow
          (1) allow
assignedToUserNotGroup
          (7200) assignment to user as opposed to group
personRole
          (864000) person/role assignment
resource
          (3600) direct resource assignment (120*30) (120) indirect direct resource assignment depth 29
role
          (432000) direct role assignment (14400 * 30) (14400) role assignment with role depth 29
 
Method Summary
abstract  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 depth
static PermissionHeuristic.PermissionHeuristicType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PermissionHeuristic.PermissionHeuristicType[] 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

personRole

public static final PermissionHeuristic.PermissionHeuristicType personRole
(864000) person/role assignment


role

public static final PermissionHeuristic.PermissionHeuristicType role
(432000) direct role assignment (14400 * 30) (14400) role assignment with role depth 29


assignedToUserNotGroup

public static final PermissionHeuristic.PermissionHeuristicType assignedToUserNotGroup
(7200) assignment to user as opposed to group


resource

public static final PermissionHeuristic.PermissionHeuristicType resource
(3600) direct resource assignment (120*30) (120) indirect direct resource assignment depth 29


action

public static final PermissionHeuristic.PermissionHeuristicType action
(58) action depth 1 (56) action depth 2 (54) action depth 3 (2) action depth 29


allow

public static final PermissionHeuristic.PermissionHeuristicType allow
(1) allow

Method Detail

values

public static PermissionHeuristic.PermissionHeuristicType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PermissionHeuristic.PermissionHeuristicType c : PermissionHeuristic.PermissionHeuristicType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PermissionHeuristic.PermissionHeuristicType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - 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