com.ibm.commerce.pagelayout.facade.server.commands

Class 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 the ChangeLayoutMediator 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 Detail

      • ProcessLayoutCreateActionCmdImpl

        public ProcessLayoutCreateActionCmdImpl()
    • 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 interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractProcessCreateActionUsingBusinessObjectMediatorCmdImpl
        Throws:
        java.lang.Exception
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        This method returns if the command can be executed.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractProcessNounActionCmdImpl
        Returns:
        This method returns true if the command is ready to be executed, otherwise it returns false.