public class ManagedFileContainer extends AbstractResourceContainerImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
MANAGED_FILE_RESOURCE_MANAGER_NAME
This is the resource manager name for an attachment resource manager.
|
RESOURCE_MANAGER_CONFIG_FILE
Constructor and Description |
---|
ManagedFileContainer()
This method creates the attachment 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.
|
void |
rollback(ContentData contentData)
This method cancels the content managed resource found in the workspace to the base edition.
|
static ResourceContainer |
singleton()
This method returns the configured attachment container.
|
getMetaData, getResourceManager, getResourceManagers, initialize, postPublish, processPostPublishData, publish, setMetaData, synchronize, toString
public static final java.lang.String COPYRIGHT
public static final java.lang.String MANAGED_FILE_RESOURCE_MANAGER_NAME
public ManagedFileContainer()
public static ResourceContainer singleton()
public void commit(ContentData contentData) throws ResourceException
executeContentManagedFilesEARUpdate
after the changes have been promoted to the base.commit
in interface ResourceContainer
commit
in class AbstractResourceContainerImpl
contentData
- The content data to commit.ResourceException
- This is thrown when there is a problem with the promote. The problem is most likely
database-related and the exception will be wrapped in a ResourceException
.public void rollback(ContentData contentData) throws ResourceException
rollback
in interface ResourceContainer
rollback
in class AbstractResourceContainerImpl
contentData
- The content data to undo.ResourceException
- This is thrown when there is a problem with the cancel. The problem is most likely
database-related and the exception will be wrapped in a ResourceException
.