Class WorkspaceEventListener

  • java.lang.Object
  • All Implemented Interfaces:, java.util.EventListener

    public class WorkspaceEventListener
    extends java.lang.Object
    An event listener for the managed resource container to listen for content context events. The events this listener will process is workspace creation, workspace promote and workspace cancel.
    • Constructor Summary

      Constructor and Description
      Create the content context event listener for managed resources.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean isTransactionRequired()
      Returns whether a transaction is required.
      void processActivityEvent( ae)
      Process the event.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WorkspaceEventListener

        public WorkspaceEventListener()
        Create the content context event listener for managed resources.
    • Method Detail

      • isTransactionRequired

        public boolean isTransactionRequired()
        Returns whether a transaction is required.
        Specified by:
        isTransactionRequired in interface
        Always true.
      • processActivityEvent

        public void processActivityEvent( ae)
                                  throws ECException
        Process the event. The event will have data that will be an instance of WorkspaceEventData. Only events that have this type of data will be processed. When the event is received, depending on the event type (create, promote, or cancel), the appropriate action on the Workspace Manager will be performed.
        Specified by:
        processActivityEvent in interface
        ae - The event being raised.
        ECException - If there is a problem processing the event. All exception raised by the Managed Resource Container manager is a resource exception. This will be wrapped and rethrown as an ECSystemException.