com.ibm.commerce.pagelayout.facade.server.commands
Class ProcessLayoutCreateActionCmdImpl
- 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.pagelayout.facade.server.commands.ProcessLayoutCreateActionCmdImpl
-
- All Implemented Interfaces:
- AbstractProcessNounActionCmd, ProcessLayoutActionCmd, 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 ProcessLayoutCreateActionCmdImpl extends AbstractProcessCreateActionUsingBusinessObjectMediatorCmdImpl implements ProcessLayoutActionCmd
This command is used to create a new page layout based on the specified Layout noun. This command first calls theChangeLayoutMediator
to create the layout with widgets and then creates the page locations separately with Change Page Location Part Action Command.- 1) This command performs business logic validation and its parent class calls the below mediators to persist the changes to the database:
ChangeLayoutMediator
ChangeLayoutWidgetPartMediator
- 2) This command also validates and creates Page Location noun parts with Change Page Location Part Action Command.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ProcessLayoutCreateActionCmdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
isReadyToCallExecute()
This method returns if the command can be executed.void
performExecute()
Performs the main logic of this command.void
validate()
This method performs business logic validation for this action.-
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, 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
-
performExecute
public void performExecute() throws java.lang.Exception
Performs the main logic of this command.- Calls
super.performExecute()
to invoke the configured mediators. - Calls
ChangeBusinessObjectMediator.applyChanges()
to save all the changes that made to physical entity objects which are stored by the physical data containers. - Creates Page Location (in PLLOCATION table) corresponding to the Page Location noun parts in the layout noun, which will delegate to the Change Page Location Part Action Command.
- Creates widgets and widget extended data if specified.
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractProcessCreateActionUsingBusinessObjectMediatorCmdImpl
- Throws:
java.lang.Exception
- Calls
-
validate
public void validate() throws AbstractApplicationException
This method performs business logic validation for this action.- Calls super() to run the data service layer validation.
- If the layout contains widgets, the method invokes the preProcess method to prepare the layout for creation.
- Calls
ChangeLayoutPartActionCmd
to validate create for each Page Location noun part.
- Specified by:
validate
in interfaceAbstractProcessNounActionCmd
- Overrides:
validate
in classAbstractProcessCreateActionUsingBusinessObjectMediatorCmdImpl
- Throws:
AbstractApplicationException
- If there are validation errors or exceptions.- See Also:
preProcessLayout()
-
isReadyToCallExecute
public boolean isReadyToCallExecute()
This method returns if the command can be executed.- Specified by:
isReadyToCallExecute
in interfacecom.ibm.websphere.command.Command
- Overrides:
isReadyToCallExecute
in classAbstractProcessNounActionCmdImpl
- Returns:
- This method returns true if the command is ready to be executed, otherwise it returns false.
-
-