com.ibm.commerce.catalog.facade.server.commands
Class ProcessCatalogCreateActionCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.foundation.server.command.bod.AbstractProcessNounActionCmdImpl
-
- com.ibm.commerce.foundation.server.command.bod.bom.AbstractProcessCustomActionUsingBusinessObjectMediatorCmdImpl
-
- com.ibm.commerce.foundation.server.command.bod.bom.AbstractProcessCreateActionUsingBusinessObjectMediatorCmdImpl
-
- com.ibm.commerce.catalog.facade.server.commands.ProcessCatalogCreateActionCmdImpl
-
- All Implemented Interfaces:
- ProcessActionCatalogCmd, AbstractProcessNounActionCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
public class ProcessCatalogCreateActionCmdImpl extends AbstractProcessCreateActionUsingBusinessObjectMediatorCmdImpl implements ProcessActionCatalogCmd
Create catalog task command. The process create catalog command creats a catalog entity This command will create a catalog based on the following Catalog noun top level elements passed in from the request: CatalogIdentifier _cat:Description _cat:Attributes The relationship from the given catalog entry to the store provided in the request will get created in the database. The following errors conditions exists for this command:- When the catalog external identifier provided for the catalog already exists for the given owner or store When the external identifier is missing The owner id of the catalog is passed in the request BOD. However, the owner id of the catalog is different from the owner id of the store in the context.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ProcessCatalogCreateActionCmdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
performExecute()
Adds the catalog object to the system.java.util.Set
preProcess()
Preprocess for this command.void
validate()
Data validations for this command.-
Methods inherited from class com.ibm.commerce.foundation.server.command.bod.bom.AbstractProcessCustomActionUsingBusinessObjectMediatorCmdImpl
getChangeBusinessObjectMediator, getChangeControlBusinessObjectMediator
-
Methods inherited from class com.ibm.commerce.foundation.server.command.bod.AbstractProcessNounActionCmdImpl
getActionExpression, getNoun, isGeneric, isReadyToCallExecute, reset, setActionExpression, setNoun, setPersistentObjects
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.commerce.foundation.server.command.bod.AbstractProcessNounActionCmd
isGeneric, setActionExpression, setNoun, setPersistentObjects
-
-
-
-
Method Detail
-
preProcess
public java.util.Set preProcess() throws AbstractApplicationException
Preprocess for this command. No operations are performed in default implementation- Throws:
AbstractApplicationException
- See Also:
com.ibm.commerce.foundation.server.command.bod.ProcessActionNounCmd#preProcess()
-
performExecute
public void performExecute() throws java.lang.Exception
Adds the catalog object to the system. This method performs the logical to physical tranformation of theCatalogType
logical noun with the help of mediators and persist the changes using the data service layer- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractProcessCreateActionUsingBusinessObjectMediatorCmdImpl
- Throws:
java.lang.Exception
- A problem happened during processing the create action.- See Also:
TargetableCommandImpl.performExecute()
-
validate
public void validate() throws AbstractApplicationException
Data validations for this command. Checks if the external or internal identifiers are set for the noun. The external or internal identifier are mandatory. Also the owner id of the object is also validated, checks if the object already exists in the system with the help of the mediators. Also validates that the store in the context is not a Channel Hub Store.- Specified by:
validate
in interfaceAbstractProcessNounActionCmd
- Overrides:
validate
in classAbstractProcessCreateActionUsingBusinessObjectMediatorCmdImpl
- Throws:
AbstractApplicationException
- If there are any validation errors- See Also:
AbstractProcessNounActionCmd.validate()
-
-