public class CatalogGroupCatalogEntryRelationResourceManager extends AbstractEntityBeanCacheInvIDGenResourceManagerImpl implements RelatedResourceManager, ResourceManager
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 |
---|
CatalogGroupCatalogEntryRelationResourceManager() |
Modifier and Type | Method and Description |
---|---|
void |
commit(ContentData contentData)
This method commits the changes in the workspace to the base edition.
|
void |
createRelatedManagedResources(ActivityToken activityToken,
java.lang.Object relatedResource,
java.lang.Object createData)
Creates all the resources related to a given parent resource based on the original creation data.
|
void |
deleteRelatedManagedResources(ActivityToken activityToken,
java.lang.Object relatedResource)
Deletes all the catalog group to catalog entry relation resources that has a relation to the catalog group or catalog entry for the given
content context.
|
EntityBeanCreationData |
getEntityCreationData(java.lang.Object ManagedResource) |
java.lang.Object |
getManagedResource(java.lang.Object ecd)
Returns the resource given the key supplied in the object.
|
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 CatalogGroupCatalogEntryRelationResourceManager |
getUniqueInstance()
Retrieves the singleton of the resource manager.
|
void |
updateRelatedManagedResources(ActivityToken activityToken,
java.lang.Object relatedResource)
Updates all the resources related to a given parent resource.
|
postPublish, processPostPublishData
createManagedResource, deleteManagedResource, fetchUniqueIndexViolations, getLockData, getLockData, getManagedResourceData, getManagedResourceDataCount, getMetaData, getResourceContainer, handleForeignKeyViolations, handleUniqueIndexViolations, handleUniqueIndexViolations, isLocked, isLocked, lockManagedResource, publish, 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, postPublish, publish, relockManagedResource, rollback, setMetaData, setResourceContainer, synchronize, unlockManagedResource, updateManagedResource
public CatalogGroupCatalogEntryRelationResourceManager()
public static CatalogGroupCatalogEntryRelationResourceManager getUniqueInstance()
public java.lang.Object getManagedResource(java.lang.Object ecd) throws java.lang.Exception
ecd
- The EntityCreationData object used to represent creating the managed resource.Problem
- when resolving the managed resource key to the actual object.java.lang.Exception
- any problem resolving the managed resourcepublic EntityBeanCreationData getEntityCreationData(java.lang.Object ManagedResource) throws java.lang.Exception
java.lang.Exception
com.ibm.commerce.content.resources.ManagedResourceManager#getEntityCreationData(Object)
public ManagedResourceKey getManagedResourceKey(java.util.Map boKeyMap) throws java.lang.Exception
ResourceManager
getManagedResourceKey
in interface 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 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
getManagedResourceKey
in interface 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 void deleteRelatedManagedResources(ActivityToken activityToken, java.lang.Object relatedResource) throws ResourceException
deleteRelatedManagedResources
in interface RelatedResourceManager
deleteRelatedManagedResources
in class AbstractResourceManagerImpl
activityToken
- The current activity.relatedResource
- The related resource.java.lang.Exception
- A problem when deleting the child resources.ResourceException
- This is thrown if a problem occurs when deleting the child resources.com.ibm.commerce.content.resources.RelatedResourceManager#deleteRelatedManagedResources(ActivityToken, Object)
public void createRelatedManagedResources(ActivityToken activityToken, java.lang.Object relatedResource, java.lang.Object createData) throws ResourceException
RelatedResourceManager
createRelatedManagedResources
in interface RelatedResourceManager
activityToken
- The current activity.relatedResource
- The parent resource.createData
- The original creation data.ResourceException
- on any problem creating resourcescom.ibm.commerce.content.resources.RelatedResourceManager#createRelatedManagedResources(ActivityToken, Object, Object)
public void updateRelatedManagedResources(ActivityToken activityToken, java.lang.Object relatedResource) throws ResourceException
RelatedResourceManager
updateRelatedManagedResources
in interface RelatedResourceManager
activityToken
- The current activity.relatedResource
- The parent resource.ResourceException
- on any problem updating the child resourcescom.ibm.commerce.content.resources.RelatedResourceManager#updateRelatedManagedResources(ActivityToken, Object)
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)