com.ibm.commerce.context.content.resources.postpublish
Class PostPublishUtility
- java.lang.Object
-
- com.ibm.commerce.context.content.resources.postpublish.PostPublishUtility
-
public class PostPublishUtility extends java.lang.Object
PostPublishUtility is a utility class for supporting post-publish activities.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
CLASSNAME
Define the CLASSNAME.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
propagateData(java.lang.String data, java.lang.String dataTopicId, java.sql.Connection connection)
propagates the post-publish data to production server, where any data processors that subscribe to the data topic will be notified to process the data.static PostPublishUtility
singleton()
returns the singleton of the PostPublishUtility.
-
-
-
Method Detail
-
singleton
public static PostPublishUtility singleton()
returns the singleton of the PostPublishUtility.- Returns:
- the instance of the PostPublishUtility.
-
propagateData
public void propagateData(java.lang.String data, java.lang.String dataTopicId, java.sql.Connection connection) throws ECException
propagates the post-publish data to production server, where any data processors that subscribe to the data topic will be notified to process the data. A data processor should implement interface PostPublishDataProcessor and can be registered under one or more data topics in the post-publish configuration file.- Parameters:
data
- string data object.dataTopicId
- data topic ID. It should be defined in the post-publish configuration file.connection
- the jdbc database connection to the database on production server.- Throws:
ECException
- a problem occurs when propagating the data.
-
-