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

public class EventContextImpl extends AbstractEventContext
Default implementation
Author:
Bogdan Stefanescu
See Also:
  • Field Details

  • Constructor Details

    • EventContextImpl

      protected EventContextImpl()
      Constructor to be used by derived classes
    • EventContextImpl

      public EventContextImpl(Object... args)
    • EventContextImpl

      public EventContextImpl(CoreSession session, NuxeoPrincipal principal, Object... args)
    • EventContextImpl

      public EventContextImpl(CoreSession session, NuxeoPrincipal principal)
  • Method Details

    • setArgs

      public void setArgs(Object[] args)
    • getCoreSession

      public CoreSession getCoreSession()
      Description copied from interface: EventContext
      Gets the current core session if any.
      Returns:
      the core session, or null if none
    • getPrincipal

      public NuxeoPrincipal getPrincipal()
      Description copied from interface: EventContext
      Gets the current principal.
      Returns:
      the principal. Cannot be null.
    • setCoreSession

      public void setCoreSession(CoreSession session)
      Description copied from interface: EventContext
      Sets the core session.
    • updateRepositoryName

      protected void updateRepositoryName()
    • setPrincipal

      public void setPrincipal(NuxeoPrincipal principal)
      Description copied from interface: EventContext
      Sets the principal.