Class ResourceContentEventListener

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

    public class ResourceContentEventListener
    extends java.lang.Object
    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( 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
        This method always returns true.
      • processActivityEvent

        public void processActivityEvent( 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
        ae - The event being raised.
        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.