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 | 
facet  | 
protected Boolean | 
isAdministrator  | 
protected boolean | 
isPostCommit  | 
protected String[] | 
lifeCycle  | 
protected List<String> | 
memberOf
the 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 String | 
convertExpr(String expr)  | 
Filter | 
getAttribute()  | 
String | 
getChainId()  | 
String | 
getCondition()
Condition to define on event handler 
 | 
Set<String> | 
getDoctypes()  | 
Set<String> | 
getEvents()  | 
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 | 
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
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 _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)
public void setDoctypes(Set<String> doctypes)
public void setLifeCycle(String[] lifeCycle)
public void setChainId(String chainId)
public 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()
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 © 2019 Nuxeo. All rights reserved.