public class ProductSetCeRelResourceManager extends AbstractEntityBeanCacheInvIDGenResourceManagerImpl implements RelatedResourceManager, ResourceManager
Constructor and Description |
---|
ProductSetCeRelResourceManager() |
Modifier and Type | Method and Description |
---|---|
protected boolean | canCurrentActivityModifyResource(ActivityToken activityToken, ManagedResourceKey managedResourceKey, java.lang.String action)
Since no locking is required for this resources, override the parent method to make this method always return true.
|
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 related resources that has a relation to the catalog entry or product set for the given content context.
|
com.ibm.commerce.context.content.objects.EntityCreationData | getEntityCreationData(java.lang.Object businessObject) |
java.lang.Object | getManagedResource(java.lang.Object ecd)
Returns the resource given the key supplied in the object.
|
ManagedResourceKey | getManagedResourceKey(com.ibm.commerce.context.content.objects.EntityCreationData 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 ProductSetCeRelResourceManager | getUniqueInstance()
Retrieves the singleton of the resource manager.
|
void | synchronize(ContentData contentData)
This methods calls SimpleProductSetPublishCmd to synchronize the Product set and Catalog Entry relations based on the category relations changes in the workspace.
|
void | updateRelatedManagedResources(ActivityToken activityToken, java.lang.Object relatedResource)
Updates all the resources related to a given parent resource.
|
public static ProductSetCeRelResourceManager getUniqueInstance()
public com.ibm.commerce.context.content.objects.EntityCreationData getEntityCreationData(java.lang.Object businessObject) throws java.lang.Exception
public ManagedResourceKey getManagedResourceKey(java.util.Map boKeyMap) throws java.lang.Exception
public ManagedResourceKey getManagedResourceKey(com.ibm.commerce.context.content.objects.EntityCreationData ecd) throws java.lang.Exception
public ManagedResourceKey getManagedResourceKey(java.lang.Object businessObject) throws java.lang.Exception
public void deleteRelatedManagedResources(ActivityToken activityToken, java.lang.Object relatedResource) throws ResourceException
public void createRelatedManagedResources(ActivityToken activityToken, java.lang.Object relatedResource, java.lang.Object createData) throws ResourceException
public void updateRelatedManagedResources(ActivityToken activityToken, java.lang.Object relatedResource) throws ResourceException
protected boolean canCurrentActivityModifyResource(ActivityToken activityToken, ManagedResourceKey managedResourceKey, java.lang.String action) throws ResourceException
public java.lang.Object getManagedResource(java.lang.Object ecd) throws java.lang.Exception
public void synchronize(ContentData contentData) throws ResourceException