public class PostPublishECEventListenerImpl
extends com.ibm.commerce.event.impl.AbstractECEventListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASS
the class attribute of the PostPublishDataProcessor node in the post-publish configuration file.
|
static java.lang.String | DATA
the name of the data attribute in the ExtendedDataElement object.
|
static java.lang.String | DATA_TOPIC_ID
the name of the data topic ID attribute in the ExtendedDataElement object.
|
static java.lang.String | EDE_POST_PUBLISH_DATA
the name of the ExtendedDataElement object in the post-publish event.
|
static java.lang.String | ID
the id attribute of the PostPublishDataTopic node in the post-publish configuration file.
|
static java.lang.String | POST_PUBLISH_CONFIG_FILE
the post-publish listener configuration file.
|
static java.lang.String | POST_PUBLISH_DATA_PROCESSOR
the PostPublishDataProcessor node in the post-publish listener configuration file.
|
static java.lang.String | POST_PUBLISH_DATA_TOPIC
the PostPublishDataTopic node in the post-publish listener configuration file.
|
static java.lang.String | POST_PUBLISH_DATA_TOPICS
the PostPublishDataTopics node in the post-publish listener configuration file.
|
static java.lang.String | POST_PUBLISH_EC_EVENT
the extension name of the post-publish event.
|
Constructor and Description |
---|
PostPublishECEventListenerImpl()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List | getDataProcessors(java.lang.String dataTopic)
gets the data processors registered under the given topic.
|
java.lang.Class | getECEventContainer()
returns the class PostPublishECEventContainer as the event container.
|
java.util.Set | getEvents()
returns a set that contains the extension name of the post-publish event.
|
protected java.lang.String | getExtendedDataElementStringAttribute(org.eclipse.hyades.logging.events.cbe.ExtendedDataElement extendedDataElement, java.lang.String name)
returns the first value of the extended data element that matches the specified attribute name.
|
void | initialize(java.net.URL configURL)
initializes the utility by reading the post-publish configuration.
|
protected PostPublishDataProcessor | loadDataProcessor(java.lang.String className)
loads a PostPublishDataProcessor class.
|
protected void | parsePostPublishDataTopicsNode(org.w3c.dom.Node nodeTopics)
parses the PostPublishDataTopics node in the configuration file.
|
void | processEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
processes a post-publish event.
|
protected void | processPostPublishEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
processes a post-publish event.
|
protected void | registerDataProcessor(java.lang.String dataTopic, java.lang.String dataProcessor)
registers a post-publish data processor to a topic.
|
public static final java.lang.String POST_PUBLISH_EC_EVENT
public static final java.lang.String EDE_POST_PUBLISH_DATA
public static final java.lang.String DATA
public static final java.lang.String DATA_TOPIC_ID
public static final java.lang.String POST_PUBLISH_CONFIG_FILE
public static final java.lang.String POST_PUBLISH_DATA_TOPICS
public static final java.lang.String POST_PUBLISH_DATA_TOPIC
public static final java.lang.String ID
public static final java.lang.String POST_PUBLISH_DATA_PROCESSOR
public static final java.lang.String CLASS
public PostPublishECEventListenerImpl()
public java.lang.Class getECEventContainer()
public java.util.Set getEvents()
public void processEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
public void initialize(java.net.URL configURL) throws ECException
protected void parsePostPublishDataTopicsNode(org.w3c.dom.Node nodeTopics)
protected void registerDataProcessor(java.lang.String dataTopic, java.lang.String dataProcessor)
protected java.util.List getDataProcessors(java.lang.String dataTopic)
protected PostPublishDataProcessor loadDataProcessor(java.lang.String className) throws ECException
protected void processPostPublishEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent) throws ECException
protected java.lang.String getExtendedDataElementStringAttribute(org.eclipse.hyades.logging.events.cbe.ExtendedDataElement extendedDataElement, java.lang.String name)