Package com.netscape.cms.evaluators
Class GroupAccessEvaluator
java.lang.Object
com.netscape.cms.evaluators.GroupAccessEvaluator
- All Implemented Interfaces:
IAccessEvaluator
A class represents a group acls evaluator.
- Version:
- $Revision$, $Date$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
evaluate
(IAuthToken authToken, String type, String op, String value) evaluates uid in AuthToken to see if it has membership in group valueboolean
evaluates uid in SessionContext to see if it has membership in group valuegets the description for this acl evaluatorString[]
Get the supported operators for this evaluatorgetType()
gets the type name for this acl evaluatorvoid
init()
initialization.
-
Field Details
-
logger
public static org.slf4j.Logger logger
-
-
Constructor Details
-
GroupAccessEvaluator
public GroupAccessEvaluator()Class constructor.
-
-
Method Details
-
init
public void init()initialization. nothing for now.- Specified by:
init
in interfaceIAccessEvaluator
-
getType
gets the type name for this acl evaluator- Specified by:
getType
in interfaceIAccessEvaluator
- Returns:
- type for this acl evaluator: "group" or "at_group"
-
getDescription
gets the description for this acl evaluator- Specified by:
getDescription
in interfaceIAccessEvaluator
- Returns:
- description for this acl evaluator
-
getSupportedOperators
Description copied from interface:IAccessEvaluator
Get the supported operators for this evaluator- Specified by:
getSupportedOperators
in interfaceIAccessEvaluator
- Returns:
- Supported operators in string array
-
evaluate
evaluates uid in AuthToken to see if it has membership in group value- Specified by:
evaluate
in interfaceIAccessEvaluator
- Parameters:
authToken
- authentication tokentype
- must be "at_group"op
- must be "="value
- the group name- Returns:
- true if AuthToken uid belongs to the group value, false otherwise
-
evaluate
evaluates uid in SessionContext to see if it has membership in group value- Specified by:
evaluate
in interfaceIAccessEvaluator
- Parameters:
type
- must be "group"op
- must be "="value
- the group name- Returns:
- true if SessionContext uid belongs to the group value, false otherwise
-