|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.permissions.PermissionHeuristic
public class PermissionHeuristic
this takes a permissions assignment (PermissionEntry), and gives it a score so you can find the best entry, even if it is a tie, to decide if allow or deny. Max depth resource: 30 (configurable in grouper.properties) (864000) person/role assignment (432000) direct role assignment (14400 * 30) (14400) role assignment with role depth 29 (7200) assignment to user as opposed to group (3600) direct resource assignment (120*30) (120) indirect direct resource assignment depth 29 (60) direct action assignment (2*30) (58) action depth 1 (56) action depth 2 (54) action depth 3 (2) action depth 29 (1) allow
Nested Class Summary | |
---|---|
static class |
PermissionHeuristic.PermissionHeuristicType
which type of heuristic (not including depth) |
Constructor Summary | |
---|---|
PermissionHeuristic()
|
Method Summary | |
---|---|
static java.util.List<PermissionHeuristic.PermissionHeuristicType> |
allTypesOrdered()
get all types ordered by most important |
static java.lang.String |
collectionToString(java.util.Collection<PermissionHeuristic> permissionHeuristics)
convert a collection to string |
static PermissionHeuristics |
computeHeuristics(long score)
computer heuristics |
static long |
computePermissionHeuristic(PermissionEntry permissionEntry)
compute a heuristic based on how important the aspects of the permissionEntry are see the class javadoc for more info |
boolean |
equals(java.lang.Object obj)
|
int |
getDepth()
if this is a heuristic which has depth, then this is it, or -1 |
PermissionHeuristic.PermissionHeuristicType |
getPermissionHeuristicType()
type of heuristic |
int |
hashCode()
|
void |
setDepth(int depth1)
if this is a heuristic which has depth, then this is it, or -1 |
void |
setPermissionHeuristicType(PermissionHeuristic.PermissionHeuristicType permissionHeuristicType1)
type of heuristic |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PermissionHeuristic()
Method Detail |
---|
public PermissionHeuristic.PermissionHeuristicType getPermissionHeuristicType()
public void setPermissionHeuristicType(PermissionHeuristic.PermissionHeuristicType permissionHeuristicType1)
permissionHeuristicType1
- public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public int getDepth()
public void setDepth(int depth1)
depth1
- public static java.util.List<PermissionHeuristic.PermissionHeuristicType> allTypesOrdered()
public static PermissionHeuristics computeHeuristics(long score)
score
-
public static long computePermissionHeuristic(PermissionEntry permissionEntry)
permissionEntry
-
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public static java.lang.String collectionToString(java.util.Collection<PermissionHeuristic> permissionHeuristics)
permissionHeuristics
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |