Class EventHandler
java.lang.Object
org.nuxeo.ecm.automation.core.events.EventHandler
- All Implemented Interfaces:
Descriptor
- Author:
- Bogdan Stefanescu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Filterprotected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected Booleanprotected booleanprotected String[]the principal should be member of at least one of the groups.protected StringFields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_setCondition(String condition) Condition to define on event handlergetFacet()getId()The descriptor id, descriptors with same id are merged.String[]booleanbooleanisEnabled(OperationContext ctx, EventContext eventCtx, boolean quick) Checks if this handler should run for the event and operation context.booleanmerge(Descriptor o) Returns a descriptor representingothermerged intothisvoidsetAttribute(String attribute) protected voidsetLifeCycleExpr(String lifeCycles) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.runtime.model.Descriptor
doesRemove
-
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()
-
-
Method Details
-
setLifeCycleExpr
-
setAttribute
-
_setCondition
-
getId
Description copied from interface:DescriptorThe descriptor id, descriptors with same id are merged.To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden
toString()for exemple.- Specified by:
getIdin interfaceDescriptor
-
getEvents
-
getChainId
-
isPostCommit
public boolean isPostCommit() -
getCondition
Condition to define on event handler- Since:
- 5.7
-
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
-
merge
Description copied from interface:DescriptorReturns a descriptor representingothermerged intothisDefault implementation returns
other.- Specified by:
mergein interfaceDescriptor- Returns:
- the merged descriptor
- Since:
- 2025.0
-