public interface ResourceContainer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright.
|
Modifier and Type | Method and Description |
---|---|
void |
commit(ContentData contentData)
This method commits the changes in the workspace to the base schema.
|
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 map of resource managers belonging to the container and the
name of the resource they represent.
|
void |
initialize()
This method initializes the container.
|
void |
postPublish(ContentData contentData)
This method processes a post-publish event.
|
void |
publish(ContentData contentData,
ContentPublisher publisher)
This method publishes a task group.
|
void |
rollback(ContentData contentData)
This method rolls back the workspace by undoing all changes.
|
void |
setMetaData(ResourceContainerMetaData resourceContainerMetaData)
This method sets the metadata associated with the container.
|
void |
synchronize(ContentData contentData)
This method synchronizes the specified workspace.
|
static final java.lang.String COPYRIGHT
void initialize() throws java.lang.Exception
java.lang.Exception
- This is thrown if there is a problem reading, configuration or accessing a database when
initializing the container.void commit(ContentData contentData) throws ResourceException
contentData
- The content data to commit.ResourceUpdateException
- This is thrown if there is a problem performing the commit operation.
This usually occurs when the commit causes data integrity problems.ResourceException
void synchronize(ContentData contentData) throws ResourceException
contentData
- 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 if there is a problem performing the synchronize operation.
This usually occurs when the commit causes data integrity problems.void publish(ContentData contentData, ContentPublisher publisher) throws ResourceException
contentData
- The content data to publish.publisher
- The quick publisher.ResourceException
- This is thrown if there is a problem publishing a task group.void postPublish(ContentData contentData) throws ResourceException
contentData
- The content data.ResourceException
- This is thrown if a problem occurs in the post-publish event processing.void rollback(ContentData contentData) throws ResourceException
contentData
- The content data to commit.ResourceUpdateException
- This is thrown if there is a problem performing the rollback.ResourceException
ResourceManager getResourceManager(java.lang.String resourceName)
resourceName
- The name of the resource.java.util.Map getResourceManagers()
void setMetaData(ResourceContainerMetaData resourceContainerMetaData)
resourceContainerMetaData
- The resource container metadata.ResourceContainerMetaData getMetaData()