public class EventHandler extends Object
Constructor and Description |
---|
EventHandler() |
EventHandler(Set<String> eventId,
String chainId) |
EventHandler(String eventId,
String chainId) |
Modifier and Type | Method and Description |
---|---|
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 |
setDoctypes(Set<String> doctypes) |
void |
setExpression(String expression) |
void |
setFacet(String facet) |
void |
setIsAdministrator(Boolean isAdministrator) |
void |
setLifeCycle(String[] lifeCycle) |
void |
setMemberOf(List<String> groups) |
void |
setPathStartsWith(String pathStartsWith) |
void |
setPostCommit(boolean isPostCommit) |
public void setAttribute(String attribute)
public String getChainId()
public void setPostCommit(boolean isPostCommit)
public boolean isPostCommit()
public void setAttributeFilter(Filter attribute)
public void setIsAdministrator(Boolean isAdministrator)
public void setPathStartsWith(String pathStartsWith)
public void setExpression(String expression)
public void setFacet(String facet)
public void setLifeCycle(String[] lifeCycle)
public void setChainId(String chainId)
@Deprecated public String getExpression()
getCondition()
insteadpublic String getCondition()
public String getFacet()
public Filter getAttribute()
public String[] getLifeCycle()
public Boolean getIsAdministrator()
public String getPathStartsWith()
@Deprecated public Expression getExpr()
public boolean isEnabled(OperationContext ctx, EventContext eventCtx, boolean quick) throws Exception
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
instancesException
Copyright © 2014 Nuxeo SA. All Rights Reserved.