Package org.nuxeo.ecm.core.event.impl
Class EventContextImpl
java.lang.Object
org.nuxeo.ecm.core.event.impl.AbstractEventContext
org.nuxeo.ecm.core.event.impl.EventContextImpl
- All Implemented Interfaces:
Serializable
,EventContext
- Direct Known Subclasses:
BlobEventContext
,DocumentDomainEventContext
,DocumentEventContext
,InlineEventContext
,UnboundEventContext
Default implementation
- Author:
- Bogdan Stefanescu
- See Also:
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.event.impl.AbstractEventContext
args, EMPTY, properties, repositoryName
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor to be used by derived classesEventContextImpl
(Object... args) EventContextImpl
(CoreSession session, NuxeoPrincipal principal) EventContextImpl
(CoreSession session, NuxeoPrincipal principal, Object... args) -
Method Summary
Modifier and TypeMethodDescriptionGets the current core session if any.Gets the current principal.void
void
setCoreSession
(CoreSession session) Sets the core session.void
setPrincipal
(NuxeoPrincipal principal) Sets the principal.protected void
Methods inherited from class org.nuxeo.ecm.core.event.impl.AbstractEventContext
getArguments, getProperties, getProperty, getRepositoryName, hasProperty, newEvent, newEvent, setProperties, setProperty, setRepositoryName
-
Field Details
-
session
-
principal
-
-
Constructor Details
-
EventContextImpl
protected EventContextImpl()Constructor to be used by derived classes -
EventContextImpl
-
EventContextImpl
-
EventContextImpl
-
-
Method Details
-
setArgs
-
getCoreSession
Description copied from interface:EventContext
Gets the current core session if any.- Returns:
- the core session, or null if none
-
getPrincipal
Description copied from interface:EventContext
Gets the current principal.- Returns:
- the principal. Cannot be null.
-
setCoreSession
Description copied from interface:EventContext
Sets the core session. -
updateRepositoryName
protected void updateRepositoryName() -
setPrincipal
Description copied from interface:EventContext
Sets the principal.
-