public class ChangeCatalogGroupCmdImpl extends AbstractChangeNounUsingBusinessObjectMediatorCmdImpl implements ChangeCatalogGroupCmd
Constructor and Description |
---|
ChangeCatalogGroupCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected BusinessObjectDocumentType | buildRespondBusinessObjectDocument(java.util.Map nounsAndActions, java.util.Map persistentObjects)
This method builds and returns the business object document that represents the response of this change request.
|
protected CatalogFactory | getCatalogFactory()
Getter method which returns the CatalogFactory.
|
java.lang.String | getCatalogId()
This method returns the catalog id in the current business context.
|
protected java.lang.String | getChangeNounPartActionCommandInterface()
This method returns that the interface is com.ibm.commerce.catalog.facade.server.commands.ChangeCatalogGroupPartCmd.
|
protected boolean | isAuthorizationOnNounParts()
This method indicates when performing the authorization check on the actions being performed on the noun, whether to use the noun or the noun part as part of the check.
|
protected void | save(java.util.Map amapPersistentObjects)
Calls super.save(amapPersistentObjects) and issues cache invalidations.
|
protected CatalogFactory getCatalogFactory()
protected BusinessObjectDocumentType buildRespondBusinessObjectDocument(java.util.Map nounsAndActions, java.util.Map persistentObjects)
protected java.lang.String getChangeNounPartActionCommandInterface()
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
protected void save(java.util.Map amapPersistentObjects) throws AbstractApplicationException
protected boolean isAuthorizationOnNounParts()