public class CatalogEntryResourceManager extends AbstractEntityBeanCacheInvIDGenResourceManagerImpl
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 |
---|
CatalogEntryResourceManager() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createManagedResource(ActivityToken token,
java.lang.Object createData)
Creates a new instance of the catalog entry resource and uses the context information of the activity token to
ensure the resource is created based on the current context values.
|
ManagedResourceKey |
getManagedResourceKey(EntityBeanCreationData ecd) |
ManagedResourceKey |
getManagedResourceKey(java.util.Map boKeyMap)
This method returns the managed resource key.
|
ManagedResourceKey |
getManagedResourceKey(java.lang.Object businessObject)
This method returns the managed resource key.
|
static CatalogEntryResourceManager |
getUniqueInstance()
Retrieves the singleton of the resource manager.
|
java.util.Map |
handleUniqueIndexViolations(ContentData contentData)
This method will compare UI conflicts for
resources in the workspace and will modify them based on action from configuration.
|
void |
updateManagedResource(ActivityToken activityToken,
java.lang.Object resource)
Updates the current instance of the resource with the new current changes.
|
postPublish, processPostPublishData
commit, deleteManagedResource, deleteRelatedManagedResources, fetchUniqueIndexViolations, getLockData, getLockData, getManagedResourceData, getManagedResourceDataCount, getMetaData, getResourceContainer, handleForeignKeyViolations, handleUniqueIndexViolations, isLocked, isLocked, lockManagedResource, publish, relockManagedResource, rollback, setMetaData, setResourceContainer, synchronize, unlockManagedResource
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
commit, deleteManagedResource, getLockData, getLockData, getManagedResourceData, getManagedResourceDataCount, getMetaData, getResourceContainer, isLocked, isLocked, lockManagedResource, publish, relockManagedResource, rollback, setMetaData, setResourceContainer, synchronize, unlockManagedResource
public java.lang.Object createManagedResource(ActivityToken token, java.lang.Object createData) throws ResourceException
createManagedResource
in interface ResourceManager
createManagedResource
in class AbstractResourceManagerImpl
token
- The current activity.createData
- The data needed to create the object.
ResourceException
public void updateManagedResource(ActivityToken activityToken, java.lang.Object resource) throws ResourceException
updateManagedResource
in interface ResourceManager
updateManagedResource
in class AbstractResourceManagerImpl
activityToken
- The current activity.resource
- The resource to update.ResourceException
- When a problem occurs updating the resource.public java.util.Map handleUniqueIndexViolations(ContentData contentData) throws ResourceException
handleUniqueIndexViolations
in class AbstractResourceManagerImpl
contentData
- The content data of workspace/task group/task to check for UI violations.ResourceException
- This is thrown when there is a problem performing the primary key delete/update operation.com.ibm.commerce.context.content.resources.ResourceManager#
public ManagedResourceKey getManagedResourceKey(EntityBeanCreationData ecd) throws java.lang.Exception
java.lang.Exception
com.ibm.commerce.content.resources.ManagedResourceManager#getManagedResourceKey(EntityCreationData)
public ManagedResourceKey getManagedResourceKey(java.lang.Object businessObject) throws java.lang.Exception
ResourceManager
businessObject
- The resource to return the managed resource key of.java.lang.Exception
- This is thrown if a problem occurs when obtaining the managed resource key for the record.com.ibm.commerce.content.resources.ManagedResourceManager#getManagedResourceKey(Object)
public ManagedResourceKey getManagedResourceKey(java.util.Map boKeyMap) throws java.lang.Exception
ResourceManager
boKeyMap
- A map that represents the managed resource.java.lang.Exception
- This is thrown if a problem occurs when obtaining the managed resource key for the record.com.ibm.commerce.content.resources.ManagedResourceManager#getManagedResourceKey(Map)
public static CatalogEntryResourceManager getUniqueInstance()