Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.event.impl
Class EventContextImpl

java.lang.Object
  extended by org.nuxeo.ecm.core.event.impl.AbstractEventContext
      extended by org.nuxeo.ecm.core.event.impl.EventContextImpl
All Implemented Interfaces:
Serializable, EventContext
Direct Known Subclasses:
DocumentEventContext, InlineEventContext, UnboundEventContext

public class EventContextImpl
extends AbstractEventContext

Default implementation

Author:
Bogdan Stefanescu
See Also:
Serialized Form

Constructor Summary
EventContextImpl(CoreSession session, Principal principal)
           
EventContextImpl(CoreSession session, Principal principal, Object... args)
           
EventContextImpl(Object... args)
           
 
Method Summary
 CoreSession getCoreSession()
          Gets the current core session if any.
 Principal getPrincipal()
          Gets the current principal.
 void setArgs(Object[] args)
           
 void setCoreSession(CoreSession session)
          Sets the core session.
 void setPrincipal(Principal principal)
          Sets the principal.
 
Methods inherited from class org.nuxeo.ecm.core.event.impl.AbstractEventContext
getArguments, getProperties, getProperty, getRepositoryName, hasProperty, newEvent, newEvent, setProperties, setProperty, setRepositoryName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventContextImpl

public EventContextImpl(Object... args)

EventContextImpl

public EventContextImpl(CoreSession session,
                        Principal principal,
                        Object... args)

EventContextImpl

public EventContextImpl(CoreSession session,
                        Principal principal)
Method Detail

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 Principal 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.


setPrincipal

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


Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.