public interface ActionFilter extends Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Action action,
ActionContext context)
Checks whether this action is valid in the given context.
|
ActionFilter |
clone()
Returns a clone, useful for hot reload.
|
String |
getId() |
void |
setId(String id) |
boolean accept(Action action, ActionContext context)
The action is considered valid if no denying rule is found and at least one granting rule is found. If no rule is found at all, it is valid.
In other words: OR between granting rules, AND between denying rules, denial is favored (also if exceptions occur), AND inside of rules, OR inside or rule items (type, facet,...).
action
- the optional action to check against, should be able to be null if filters evaluation only depends
on given context.context
- mandatory context holding variables to check against.ActionFilter clone()
Copyright © 2015 Nuxeo SA. All rights reserved.