Class EventHandler
java.lang.Object
org.nuxeo.ecm.automation.core.events.EventHandler
- Author:
- Bogdan Stefanescu
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEventHandler
(String eventId, String chainId) EventHandler
(Set<String> eventId, String chainId) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
_setCondition
(String expr) clone()
protected String
convertExpr
(String expr) Condition to define on event handlergetFacet()
getId()
String[]
boolean
boolean
isEnabled
(OperationContext ctx, EventContext eventCtx, boolean quick) Checks if this handler should run for the event and operation context.boolean
void
merge
(EventHandler other) protected <C extends Collection<V>,
V>
CmergeCollections
(C collection, C otherCollection, C newCollection) void
setAttribute
(String attribute) void
setAttributeFilter
(Filter attribute) void
setChainId
(String chainId) void
setCondition
(String condition) void
setDoctypes
(Set<String> doctypes) void
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)
-
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/expression
and just returntrue
to avoid costly evaluations onShallowDocumentModel
instances
-
clone
-
merge
- Since:
- 2021.16
-
mergeCollections
protected <C extends Collection<V>,V> C mergeCollections(C collection, C otherCollection, C newCollection)
-