public interface IAccessEvaluator
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(IAuthToken authToken,
java.lang.String type,
java.lang.String op,
java.lang.String value)
Evaluates if the given value satisfies the access
control in authToken obtained from Authentication.
|
boolean |
evaluate(java.lang.String type,
java.lang.String op,
java.lang.String value)
Evaluates if the given value satisfies the access
control in current context.
|
java.lang.String |
getDescription()
Gets the description of the evaluator
|
java.lang.String[] |
getSupportedOperators()
Get the supported operators for this evaluator
|
java.lang.String |
getType()
Gets the type of the evaluator.
|
void |
init()
Initialize the evaluator
|
void init()
java.lang.String getType()
java.lang.String getDescription()
boolean evaluate(java.lang.String type, java.lang.String op, java.lang.String value)
type
- Type of the evaluator, eg, user, group etcop
- Operator of the evaluator, eg, =, !=value
- Part of the expression that can be used to
evaluate, e.g, value can be the name of the group if the
purpose of the evaluator is to evaluate if the user is a member
of the group.boolean evaluate(IAuthToken authToken, java.lang.String type, java.lang.String op, java.lang.String value)
authToken
- Authentication tokentype
- Type of the evaluator, eg, user, group etcop
- Operator of the evaluator, eg, =, !=value
- Part of the expression that can be used to
evaluate, e.g, value can be the name of the group if the
purpose of the evaluator is to evaluate if the user is a member
of the group.java.lang.String[] getSupportedOperators()