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 |
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) |
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)
@Deprecated public void setExpression(String expression)
setCondition(String)
insteadpublic void setFacet(String facet)
public void setLifeCycle(String[] lifeCycle)
public void setChainId(String chainId)
@Deprecated public String getExpression()
getCondition()
insteadpublic String getCondition()
public void setCondition(String condition)
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 ClientException
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
instancesClientException
Copyright © 2015 Nuxeo SA. All rights reserved.