com.ibm.commerce.contentmanagement.events

Class WorkspaceEventListener

  • java.lang.Object
    • com.ibm.commerce.contentmanagement.events.WorkspaceEventListener
  • All Implemented Interfaces:
    com.ibm.commerce.event.WCSEventListener, java.util.EventListener


    public class WorkspaceEventListener
    extends java.lang.Object
    implements com.ibm.commerce.event.WCSEventListener
    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

      Constructors 
      Constructor and Description
      WorkspaceEventListener()
      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(com.ibm.commerce.event.WCSEvent 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 com.ibm.commerce.event.WCSEventListener
        Returns:
        Always true.
      • processActivityEvent

        public void processActivityEvent(com.ibm.commerce.event.WCSEvent 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 com.ibm.commerce.event.WCSEventListener
        Parameters:
        ae - The event being raised.
        Throws:
        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.