public class ProcessCatalogGroupCmdImpl extends AbstractProcessBusinessObjectDocumentCmdImpl implements ProcessCatalogGroupCmd
Constructor and Description |
---|
ProcessCatalogGroupCmdImpl()
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCatalogId()
This method returns the catalog id in the current business context.
|
getNounName, setProcessNounActionCommandInterface
getResultBusinessObjectDocument, getUniqueID, getUniqueIDXPath, handleException, isReadyToCallExecute, performExecute, setRequestBusinessObjectDocument, setUniqueIDXPath
executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, reset, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResultBusinessObjectDocument, handleException, setRequestBusinessObjectDocument
public java.lang.String getCatalogId() throws BusinessObjectMediatorException
This method returns the catalog id in the current business context.
This catalog id can be used to invalidate related pages when a catalog group is updated. For example, when the name of a category is renamed (categoryId=50400000003), the CategoryDisplay page for this category needs to invalidate:
CategoryDisplay?catalogId=504&categoryId=50400000003Since the CategoryDisplay pages for its parent category (categoryId=50400000013) and sibling categories (categoryId=50400000014) also display the name of the category, they also need to invalidate.
CategoryDisplay?catalogId=504&categoryId=50400000013 CategoryDisplay?catalogId=504&categoryId=50400000014Since the getUniqueID method only returns the category id of the category being changed, this method can be used to invalidate all related pages under current catalog by using the following invalidation configuration in cachespec.xml:
command com.ibm.commerce.catalog.facade.server.commands.ChangeCatalogGroupCmdImpl com.ibm.commerce.catalog.facade.server.commands.ProcessCatalogGroupCmdImpl true categoryId true catalogId true
BusinessObjectMediatorException