com.ibm.commerce.context.content.resources

Class ResourceContentEventListener

  • java.lang.Object
    • com.ibm.commerce.context.content.resources.ResourceContentEventListener
  • All Implemented Interfaces:
    com.ibm.commerce.event.WCSEventListener, java.util.EventListener


    public class ResourceContentEventListener
    extends java.lang.Object
    implements com.ibm.commerce.event.WCSEventListener
    This class defines an event listener for the managed resource container to listen for content context events. The events this listener will process are workspace creation, workspace promote and workspace cancel.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean isTransactionRequired()
      This method returns when a transaction is required.
      void processActivityEvent(com.ibm.commerce.event.WCSEvent ae)
      This method processes the event.
      • Methods inherited from class java.lang.Object

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

      • ResourceContentEventListener

        public ResourceContentEventListener()
        This is the default constructor for this class. It calls the constructor from the superclass.
    • Method Detail

      • isTransactionRequired

        public boolean isTransactionRequired()
        This method returns when a transaction is required.
        Specified by:
        isTransactionRequired in interface com.ibm.commerce.event.WCSEventListener
        Returns:
        This method always returns true.
      • processActivityEvent

        public void processActivityEvent(com.ibm.commerce.event.WCSEvent ae)
                                  throws ECException
        This method processes the event. The event will have data that will be an instance of ContentContextEventData. Only events that have this type of data will be processed. When the event is received, the appropriate action will be performed by the managed resource container manager. This action depends on the event type (create, promote, or cancel).
        Specified by:
        processActivityEvent in interface com.ibm.commerce.event.WCSEventListener
        Parameters:
        ae - The event being raised.
        Throws:
        ECException - This is thrown if there is a problem processing the event. All exceptions raised by the managed resource container manager are resource exceptions. This will be wrapped and rethrown as ECSystemExceptions.