public class ProcessCatalogGroupCmdImpl extends AbstractProcessBusinessObjectDocumentCmdImpl implements ProcessCatalogGroupCmd
Constructor and Description |
---|
ProcessCatalogGroupCmdImpl()
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected BusinessObjectDocumentType | buildAcknowledgeBusinessObjectDocument(java.util.Map nounsAndActions, java.util.Map persistentObjects)
Builds response object
|
protected CatalogFactory | getCatalogFactory()
Returns catalog factory
|
java.lang.String | getCatalogId()
This method returns the catalog id in the current business context.
|
protected java.util.Map | read(java.util.Set nouns)
This method read all data required by the processing logic.
|
protected void | save(java.util.Map persistentObjects)
Saves the persistent objects
|
protected void | validate(java.util.Map nounsAndActions, java.util.Map persistentObjects)
Validation Method
|
protected CatalogFactory getCatalogFactory()
protected BusinessObjectDocumentType buildAcknowledgeBusinessObjectDocument(java.util.Map nounsAndActions, java.util.Map persistentObjects)
protected void save(java.util.Map persistentObjects) throws AbstractApplicationException
protected java.util.Map read(java.util.Set nouns) throws AbstractApplicationException
protected void validate(java.util.Map nounsAndActions, java.util.Map persistentObjects) throws AbstractApplicationException
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