Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
actionFilter |
protected java.lang.String |
description |
protected Evaluator |
filter |
protected SimpleEvaluatorData |
filterSymbolTable |
protected java.lang.String |
name |
protected java.util.List<java.lang.String> |
requires |
protected java.lang.String |
resourceFilter |
Constructor and Description |
---|
GenericRule(GetItemByKey values) |
GenericRule(java.lang.String name,
java.lang.String description,
java.lang.String actionFilter,
java.lang.String resourceFilter,
Evaluator filter,
java.util.List<java.lang.String> requires) |
GenericRule(java.lang.String name,
java.lang.String description,
java.lang.String actionFilter,
java.lang.String resourceFilter,
Evaluator filter,
java.lang.String requires) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.lang.String actionName) |
java.lang.String |
getDescription() |
java.lang.String |
getName() |
boolean |
isAuthorized(SimpleIdentity identity,
java.lang.String actionName,
java.lang.Object resource,
java.lang.String resourceName)
Checks is the identity is authorized to perform the action on the
indicated resource.
|
protected java.lang.String name
protected java.lang.String description
protected java.lang.String actionFilter
protected java.lang.String resourceFilter
protected Evaluator filter
protected SimpleEvaluatorData filterSymbolTable
protected java.util.List<java.lang.String> requires
public GenericRule(java.lang.String name, java.lang.String description, java.lang.String actionFilter, java.lang.String resourceFilter, Evaluator filter, java.lang.String requires)
public GenericRule(java.lang.String name, java.lang.String description, java.lang.String actionFilter, java.lang.String resourceFilter, Evaluator filter, java.util.List<java.lang.String> requires)
public GenericRule(GetItemByKey values)
public java.lang.String getDescription()
getDescription
in interface Rule
public boolean isAuthorized(SimpleIdentity identity, java.lang.String actionName, java.lang.Object resource, java.lang.String resourceName)
Rule
isAuthorized
in interface Rule
resource
- can be nullresourceName
- can be null