Class EventHandler
java.lang.Object
org.nuxeo.ecm.automation.core.events.EventHandler
- All Implemented Interfaces:
Descriptor
- Author:
- Bogdan Stefanescu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Filter
protected String
protected String
protected boolean
protected String
protected String
protected Boolean
protected boolean
protected String[]
the principal should be member of at least one of the groups.protected String
Fields 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[]
boolean
boolean
isEnabled
(OperationContext ctx, EventContext eventCtx, boolean quick) Checks if this handler should run for the event and operation context.boolean
merge
(Descriptor o) Returns a descriptor representingother
merged intothis
void
setAttribute
(String attribute) protected void
setLifeCycleExpr
(String lifeCycles) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:Descriptor
The 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:
getId
in 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/expression
and just returntrue
to avoid costly evaluations onShallowDocumentModel
instances
-
merge
Description copied from interface:Descriptor
Returns a descriptor representingother
merged intothis
Default implementation returns
other
.- Specified by:
merge
in interfaceDescriptor
- Returns:
- the merged descriptor
- Since:
- 2025.0
-