Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

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

public class UnboundEventContext
extends EventContextImpl

Minimal eventContext implementation that can be used for events that are not bound to a CoreSession.

Author:
Thierry Delprat
See Also:
Serialized Form

Constructor Summary
UnboundEventContext(CoreSession session, Principal principal, Map<String,Serializable> properties)
           
UnboundEventContext(Principal principal, Map<String,Serializable> properties)
           
 
Method Summary
 Event newEvent(String name)
          Creates a new event in that context given the event name.
 
Methods inherited from class org.nuxeo.ecm.core.event.impl.EventContextImpl
getCoreSession, getPrincipal, setArgs, setCoreSession, setPrincipal
 
Methods inherited from class org.nuxeo.ecm.core.event.impl.AbstractEventContext
getArguments, getProperties, getProperty, getRepositoryName, hasProperty, newEvent, setProperties, setProperty, setRepositoryName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnboundEventContext

public UnboundEventContext(Principal principal,
                           Map<String,Serializable> properties)

UnboundEventContext

public UnboundEventContext(CoreSession session,
                           Principal principal,
                           Map<String,Serializable> properties)
Method Detail

newEvent

public Event newEvent(String name)
Description copied from interface: EventContext
Creates a new event in that context given the event name. The default flags for the event will be used.

Specified by:
newEvent in interface EventContext
Overrides:
newEvent in class AbstractEventContext
Parameters:
name - the event name
Returns:
the event
See Also:
EventContext.newEvent(String, int)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.