Class EventHandler
java.lang.Object
org.nuxeo.ecm.automation.core.events.EventHandler
- Author:
- Bogdan Stefanescu
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEventHandler(String eventId, String chainId) EventHandler(Set<String> eventId, String chainId) -
Method Summary
Modifier and TypeMethodDescriptionprotected void_setCondition(String expr) clone()protected StringconvertExpr(String expr) Condition to define on event handlergetFacet()getId()String[]booleanbooleanisEnabled(OperationContext ctx, EventContext eventCtx, boolean quick) Checks if this handler should run for the event and operation context.booleanvoidmerge(EventHandler other) protected <C extends Collection<V>,V>
CmergeCollections(C collection, C otherCollection, C newCollection) voidsetAttribute(String attribute) voidsetAttributeFilter(Filter attribute) voidsetChainId(String chainId) voidsetCondition(String condition) voidsetDoctypes(Set<String> doctypes) voidvoidsetIsAdministrator(Boolean isAdministrator) voidsetLifeCycle(String[] lifeCycle) protected voidsetLifeCycleExpr(String lifeCycles) voidsetMemberOf(List<String> groups) voidsetPathStartsWith(String pathStartsWith) voidsetPostCommit(boolean isPostCommit)
-
Field Details
-
id
- Since:
- 2021.16
-
chainId
-
isPostCommit
protected boolean isPostCommit -
events
-
doctypes
-
facet
-
lifeCycle
-
pathStartsWith
-
attribute
-
memberOf
the principal should be member of at least one of the groups. OR is used -
isAdministrator
-
condition
- Since:
- 5.7: added to replace the 'expression' element as its evaluation is inverted
-
enabled
protected boolean enabled- Since:
- 2021.16
-
-
Constructor Details
-
EventHandler
public EventHandler() -
EventHandler
-
EventHandler
-
-
Method Details
-
setLifeCycleExpr
-
setAttribute
-
_setCondition
-
convertExpr
-
getEvents
-
getId
-
getChainId
-
setPostCommit
public void setPostCommit(boolean isPostCommit) -
isPostCommit
public boolean isPostCommit() -
setAttributeFilter
-
setIsAdministrator
-
setMemberOf
-
setPathStartsWith
-
setDoctypes
-
setFacet
-
setLifeCycle
-
setChainId
-
getCondition
Condition to define on event handler- Since:
- 5.7
-
setCondition
- Since:
- 5.9.1
-
getFacet
-
getAttribute
-
getLifeCycle
-
getMemberOf
-
getIsAdministrator
-
getPathStartsWith
-
getDoctypes
-
isEnabled
public boolean isEnabled() -
isEnabled
Checks if this handler should run for the event and operation context.- Parameters:
quick- Iftrue, then this method may not check all filter parameters likefilter/expressionand just returntrueto avoid costly evaluations onShallowDocumentModelinstances
-
clone
-
merge
- Since:
- 2021.16
-
mergeCollections
protected <C extends Collection<V>,V> C mergeCollections(C collection, C otherCollection, C newCollection)
-