public class ManagedFileResourceManager extends AbstractEntityBeanResourceManagerImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
CONTENT_CANCEL, CONTENT_DELETE, CONTENT_NEW, CONTENT_PROMOTE, CONTENT_UPDATE, RESOURCE_COMMIT, RESOURCE_DELETE, RESOURCE_NEW, RESOURCE_ROLLBACK, RESOURCE_UPDATE, STRING_CONTENT_DELETE, STRING_CONTENT_NEW, STRING_CONTENT_UPDATE
Constructor and Description |
---|
ManagedFileResourceManager()
This is the default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
void |
commit(ContentData contentData)
This method will call a helper to search for duplicate key violations for managed files only and
remove them, then it commits the changes in the workspace to the base edition.
|
java.lang.String |
getAppName()
This method returns the
appName . |
ManagedResourceKey |
getManagedResourceKey(EntityBeanCreationData data)
This method returns the business object key based on the specified entity creation data.
|
ManagedResourceKey |
getManagedResourceKey(java.util.Map record)
This method returns the business object key.
|
ManagedResourceKey |
getManagedResourceKey(java.lang.Object resource)
This method returns the business object key based on the specified resource.
|
java.lang.String |
getModuleName()
This method gets the
moduleName . |
java.lang.String |
postPublish(ContentData contentData)
This method processes a 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 the resource manager.
|
void |
setAppName(java.lang.String theAppName)
This method sets the
appName . |
void |
setModuleName(java.lang.String theModuleName)
This method sets the
moduleName . |
createManagedResource, deleteManagedResource, deleteRelatedManagedResources, fetchUniqueIndexViolations, getLockData, getLockData, getManagedResourceData, getManagedResourceDataCount, getMetaData, getResourceContainer, handleForeignKeyViolations, handleUniqueIndexViolations, handleUniqueIndexViolations, isLocked, isLocked, lockManagedResource, relockManagedResource, rollback, setMetaData, setResourceContainer, synchronize, unlockManagedResource, updateManagedResource
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createManagedResource, deleteManagedResource, getLockData, getLockData, getManagedResourceData, getManagedResourceDataCount, getMetaData, getResourceContainer, isLocked, isLocked, lockManagedResource, relockManagedResource, rollback, setMetaData, setResourceContainer, synchronize, unlockManagedResource, updateManagedResource
public static final java.lang.String COPYRIGHT
public ManagedFileResourceManager()
public ManagedResourceKey getManagedResourceKey(EntityBeanCreationData data) throws java.lang.Exception
data
- The managed file entity creation data.java.lang.Exception
com.ibm.commerce.context.content.resources.AbstractEntityBeanResourceManagerImpl#getBusinessObjectKey(com.ibm.commerce.context.content.objects.EntityCreationData)
public ManagedResourceKey getManagedResourceKey(java.lang.Object resource) throws java.lang.Exception
resource
- The Managed File Access bean.java.lang.Exception
- This is thrown if a problem occurs when obtaining the managed resource key for the record.com.ibm.commerce.context.content.resources.AbstractResourceManagerImpl#getBusinessObjectKey(java.lang.Object)
public ManagedResourceKey getManagedResourceKey(java.util.Map record) throws java.lang.Exception
long
value of the CMFILE_ID
in the map.record
- A map that represents the business object.java.lang.Exception
public void publish(ContentData contentData, ContentPublisher publisher) throws ResourceException
publish
in interface ResourceManager
publish
in class AbstractResourceManagerImpl
contentData
- The publishing content data information.publisher
- The publisher.ResourceException
public java.lang.String postPublish(ContentData contentData) throws ResourceException
postPublish
in interface ResourceManager
postPublish
in class AbstractResourceManagerImpl
contentData
- The content data.ResourceException
- Thrown if a problem occurs in the post-publish event processing.public void processPostPublishData(java.lang.String postPublishData) throws ECException
processPostPublishData
in interface PostPublishDataProcessor
processPostPublishData
in class AbstractResourceManagerImpl
postPublishData
- The post-publish data to be processed.ECException
- Thrown if a problem occurs when processing the data.public void commit(ContentData contentData) throws ResourceException
commit
in interface ResourceManager
commit
in class AbstractResourceManagerImpl
contentData
- The content data to commit.ResourceUpdateException
- This is thrown when there is a problem performing the commit operation.
This usually occurs when the commit causes data integrity problems.ResourceException
- A problem performing the commit operation.
Mostly this occurs when the commit causes data integrity problems.ResourceManager.commit(com.ibm.commerce.context.content.events.ContentData)
public java.lang.String getAppName()
appName
.appName
.public void setAppName(java.lang.String theAppName)
appName
.theAppName
- The appName
to set.public java.lang.String getModuleName()
moduleName
.moduleName
.public void setModuleName(java.lang.String theModuleName)
moduleName
.theModuleName
- The moduleName
to set.