Package org.nuxeo.ecm.platform.actions
Interface ActionFilter
-
- All Known Implementing Classes:
AbstractActionFilter
,DefaultActionFilter
public interface ActionFilter
- Author:
- Bogdan Stefanescu
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getId
String getId()
-
setId
void setId(String id)
-
accept
boolean accept(Action action, ActionContext context)
Checks whether this action is valid in the given 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,...).
- Parameters:
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.- Returns:
- true if filters configuration for given action and context. Returns false if an error occurs during one of the conditions evaluation.
-
clone
ActionFilter clone()
Returns a clone, useful for hot reload.- Since:
- 5.6
-
-