Package com.netscape.cms.evaluators
Class UserAccessEvaluator
java.lang.Object
com.netscape.cms.evaluators.UserAccessEvaluator
- All Implemented Interfaces:
IAccessEvaluator
A class represents a user 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 the user in AuthToken to see if it's equal to valueboolean
Evaluates the user in session context to see if it's equal to 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
-
UserAccessEvaluator
public UserAccessEvaluator()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: "user" or "at_user"
-
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 the user in AuthToken to see if it's equal to value- Specified by:
evaluate
in interfaceIAccessEvaluator
- Parameters:
authToken
- AuthToken from authenticationtype
- must be "at_user"op
- must be "="value
- the user id- Returns:
- true if AuthToken uid is same as value, false otherwise
-
evaluate
Evaluates the user in session context to see if it's equal to value- Specified by:
evaluate
in interfaceIAccessEvaluator
- Parameters:
type
- must be "user"op
- must be "="value
- the user id- Returns:
- true if SessionContext uid is same as value, false otherwise
-