Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webapp.helpers
Class EventManager

java.lang.Object
  extended by org.nuxeo.ecm.webapp.helpers.EventManager
All Implemented Interfaces:
java.io.Serializable

@Name(value="eventManager")
@Scope(value=APPLICATION)
@Startup
@Install(precedence=10)
public class EventManager
extends java.lang.Object
implements java.io.Serializable

Knows what events need to be raised based on the user selected document.

Author:
Razvan Caraghin
See Also:
Serialized Form

Constructor Summary
EventManager()
           
 
Method Summary
static java.util.List<java.lang.String> raiseEventsOnDocumentChange(DocumentModel document)
          Fires the necessary events so that the nuxeo infrastructure components get updated.
static java.util.List<java.lang.String> raiseEventsOnDocumentChildrenChange(DocumentModel document)
          Fires the necessary events so that the nuxeo infrastructure components get updated.
static void raiseEventsOnDocumentCreate(DocumentModel document)
          Dispatches an event to get interested components informed when a changeable document was created (thus not saved) and before the form is displayed.
static java.util.List<java.lang.String> raiseEventsOnDocumentSelected(DocumentModel document)
          Fires the necessary events so that the nuxeo infrastructure components get updated.
static java.util.List<java.lang.String> raiseEventsOnGoingHome()
          Raises events on going home, will be processed immediately.
static java.util.List<java.lang.String> raiseEventsOnLocationSelectionChanged()
          Raises events on location selection change, will be processed immediately.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventManager

public EventManager()
Method Detail

raiseEventsOnGoingHome

public static java.util.List<java.lang.String> raiseEventsOnGoingHome()
Raises events on going home, will be processed immediately.

Returns:
events fired

raiseEventsOnLocationSelectionChanged

public static java.util.List<java.lang.String> raiseEventsOnLocationSelectionChanged()
Raises events on location selection change, will be processed immediately.

Returns:
events fired

raiseEventsOnDocumentSelected

public static java.util.List<java.lang.String> raiseEventsOnDocumentSelected(DocumentModel document)
Fires the necessary events so that the nuxeo infrastructure components get updated. The raised events will be processed immediately, before this call is ended. Intended to be used when a document gets selected. If the docType is NULL then the GO_HOME event is fired.

Returns:
events fired

raiseEventsOnDocumentChange

public static java.util.List<java.lang.String> raiseEventsOnDocumentChange(DocumentModel document)
Fires the necessary events so that the nuxeo infrastructure components get updated. The raised events will be processed immediately, before this call is ended. Intended to be used when a document gets edited/changed.

Returns:
events fired

raiseEventsOnDocumentCreate

public static void raiseEventsOnDocumentCreate(DocumentModel document)
Dispatches an event to get interested components informed when a changeable document was created (thus not saved) and before the form is displayed.


raiseEventsOnDocumentChildrenChange

public static java.util.List<java.lang.String> raiseEventsOnDocumentChildrenChange(DocumentModel document)
Fires the necessary events so that the nuxeo infrastructure components get updated. The raised events will be processed immediately, before this call is ended. Intended to be used when a the content of a folderish document gets changed.

Returns:
events fired

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.