public abstract class AbstractResourceContainerImpl extends java.lang.Object implements ResourceContainer, PostPublishDataProcessor
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
RESOURCE_MANAGER_CONFIG_FILE
This is the name of the XML file that contains the resource managers defined for the container.
|
| Modifier and Type | Method and Description |
|---|---|
void |
commit(ContentData contentData)
This method promotes the content managed resource found in the workspace to the base edition.
|
ResourceContainerMetaData |
getMetaData()
This method returns the metadata associated with the container.
|
ResourceManager |
getResourceManager(java.lang.String resourceName)
This method returns the resource manager for the specified resource.
|
java.util.Map |
getResourceManagers()
This method returns the list of resource managers belonging to the container.
|
void |
initialize()
This method initializes the resource container by loading the resource managers defined
along with additional container request tasks.
|
void |
postPublish(ContentData contentData)
This method processes the post-publish event.
|
void |
processPostPublishData(java.lang.String postPublishData)
This method processes post-publish data on production server.
|
void |
publish(ContentData contentData,
ContentPublisher publisher)
This method publishes a task group from the content management workspace.
|
void |
rollback(ContentData contentData)
This method cancels the content managed resource found in the workspace to the base edition.
|
void |
setMetaData(ResourceContainerMetaData resourceContainerMetaData)
This method sets the metadata associated with the container.
|
void |
synchronize(ContentData contentData)
This method synchronizes the specified workspace.
|
java.lang.String |
toString()
This method returns a
String representation of the object. |
public static final java.lang.String RESOURCE_MANAGER_CONFIG_FILE
public void setMetaData(ResourceContainerMetaData resourceContainerMetaData)
setMetaData in interface ResourceContainerresourceContainerMetaData - The resource container metadata.public ResourceContainerMetaData getMetaData()
getMetaData in interface ResourceContainerpublic void commit(ContentData contentData) throws ResourceException
commit in interface ResourceContainercontentData - The content data to commit.ResourceException - A problem with the promote. The problem is more then likely database
related and the exception will be wrapped in a ResourceException.public void synchronize(ContentData contentData) throws ResourceException
synchronize in interface ResourceContainercontentData - The content data to synchronize. This data will not
include the task and task group because the entire workspace needs to be
synchronized.ResourceException - This is thrown when there is a problem performing the commit operation.
This usually occurs when the commit causes data integrity problems.public void publish(ContentData contentData, ContentPublisher publisher) throws ResourceException
publish in interface ResourceContainercontentData - The content data to publish.publisher - The quick publisher.ResourceException - This is thrown when there is a problem when publish a task group.public void postPublish(ContentData contentData) throws ResourceException
postPublish in interface ResourceContainercontentData - The content data.ResourceException - This is thrown when a problem occurs in the post-publish event processing.public void processPostPublishData(java.lang.String postPublishData)
throws ECException
processPostPublishData in interface PostPublishDataProcessorpostPublishData - The post-publish data to be processed.ECException - This is thrown when a problem occurs when processing the data.public void rollback(ContentData contentData) throws ResourceException
rollback in interface ResourceContainercontentData - The content data to undo.ResourceException - This is thrown when there is a problem with the cancel. The problem is most likely
database-related. The exception will be wrapped in a ResourceException.public java.lang.String toString()
String representation of the object.toString in class java.lang.ObjectString that describes the object.public ResourceManager getResourceManager(java.lang.String resourceName)
getResourceManager in interface ResourceContainerresourceName - The name of the resource.public java.util.Map getResourceManagers()
getResourceManagers in interface ResourceContainerpublic void initialize()
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.ClassNotFoundException,
java.sql.SQLException
initialize in interface ResourceContainerjavax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXExceptionjava.io.IOExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.ClassNotFoundExceptionjava.sql.SQLExceptionResourceContainer.initialize()