public class EventHandler extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected Filter | attribute | 
| protected String | chainId | 
| protected String | condition | 
| protected Set<String> | doctypes | 
| protected Set<String> | events | 
| protected String | expressionDeprecated. 
 since 5.7: expression evaluation was inverted so a new attribute condition has been defined, see
             NXP-8630 | 
| protected String | facet | 
| protected Boolean | isAdministrator | 
| protected boolean | isPostCommit | 
| protected String[] | lifeCycle | 
| protected List<String> | memberOfthe principal should be member of at least one of the groups. | 
| protected String | pathStartsWith | 
| Constructor and Description | 
|---|
| EventHandler() | 
| EventHandler(Set<String> eventId,
            String chainId) | 
| EventHandler(String eventId,
            String chainId) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | _setCondition(String expr) | 
| protected void | _setExpression(String expr) | 
| protected String | convertExpr(String expr) | 
| Filter | getAttribute() | 
| String | getChainId() | 
| String | getCondition()Condition to define on event handler | 
| Set<String> | getDoctypes() | 
| Set<String> | getEvents() | 
| Expression | getExpr()Deprecated. 
 since 5.7: use | 
| String | getExpression()Deprecated. 
 since 5.7: use  getCondition()instead | 
| String | getFacet() | 
| Boolean | getIsAdministrator() | 
| String[] | getLifeCycle() | 
| List<String> | getMemberOf() | 
| String | getPathStartsWith() | 
| boolean | isEnabled(OperationContext ctx,
         EventContext eventCtx,
         boolean quick)Checks if this handler should run for the event and operation context. | 
| boolean | isPostCommit() | 
| void | setAttribute(String attribute) | 
| void | setAttributeFilter(Filter attribute) | 
| void | setChainId(String chainId) | 
| void | setCondition(String condition) | 
| void | setDoctypes(Set<String> doctypes) | 
| void | setExpression(String expression)Deprecated. 
 since 5.7.1 use  setCondition(String)instead | 
| void | setFacet(String facet) | 
| void | setIsAdministrator(Boolean isAdministrator) | 
| void | setLifeCycle(String[] lifeCycle) | 
| protected void | setLifeCycleExpr(String lifeCycles) | 
| void | setMemberOf(List<String> groups) | 
| void | setPathStartsWith(String pathStartsWith) | 
| void | setPostCommit(boolean isPostCommit) | 
protected boolean isPostCommit
protected String pathStartsWith
protected List<String> memberOf
protected Boolean isAdministrator
@Deprecated protected String expression
public EventHandler()
public EventHandler(String eventId, String chainId)
public EventHandler(Set<String> eventId, String chainId)
protected void setLifeCycleExpr(String lifeCycles)
public void setAttribute(String attribute)
protected void _setExpression(String expr)
protected void _setCondition(String expr)
protected String convertExpr(String expr)
public String getChainId()
public void setPostCommit(boolean isPostCommit)
public boolean isPostCommit()
public void setAttributeFilter(Filter attribute)
public void setIsAdministrator(Boolean isAdministrator)
public void setMemberOf(List<String> groups)
public void setPathStartsWith(String pathStartsWith)
@Deprecated public void setExpression(String expression)
setCondition(String) insteadpublic void setDoctypes(Set<String> doctypes)
public void setLifeCycle(String[] lifeCycle)
public void setChainId(String chainId)
@Deprecated public String getExpression()
getCondition() insteadpublic String getCondition()
public void setCondition(String condition)
public Filter getAttribute()
public String[] getLifeCycle()
public List<String> getMemberOf()
public Boolean getIsAdministrator()
public String getPathStartsWith()
public Set<String> getDoctypes()
@Deprecated public Expression getExpr()
public boolean isEnabled(OperationContext ctx, EventContext eventCtx, boolean quick)
quick - If true, then this method may not check all filter parameters like filter/expression
            and just return true to avoid costly evaluations on ShallowDocumentModel instancesCopyright © 2016 Nuxeo SA. All rights reserved.