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

Class ProcessLayoutDeleteActionCmdImpl

  • 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 ProcessLayoutDeleteActionCmdImpl
    extends AbstractProcessDeleteActionUsingBusinessObjectMediatorCmdImpl
    implements ProcessLayoutActionCmd
    This command is used to delete a Layout noun. This command performs business logic validation and its parent calls the ChangeLayoutMediator to persist the noun in the database. In this command, first the Page Layout are marked as deleted, then using PageLocationActivityHelper, the associated Page Location Activities are deleted.
    See Also:
    Serialized Form
    • Constructor Detail

      • ProcessLayoutDeleteActionCmdImpl

        public ProcessLayoutDeleteActionCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws java.lang.Exception
          This method performs the main logic of this command.
        • First, calls super.performExecute() to delete the Page Layout. It will delegate to ChangeLayoutMediator to perform the logic. The Page Layouts are only marked as deleted.
        • Then, gets all of the Page Location Activities associated with the Page Layout.
        • At last, calls PageLocationActivityHelper to delete these activities.
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractProcessDeleteActionUsingBusinessObjectMediatorCmdImpl
        Throws:
        java.lang.Exception - If problem occurred when performing the action expression.
      • setPageLocationActivityHelper

        public void setPageLocationActivityHelper(java.lang.String activityHelperClassName)
                                           throws PageLayoutSystemException
        This method sets the Page Location Activity Helper used by this class.
        Parameters:
        activityHelperClassName - The fully qualified class name of the Page Location Activity Helper to set. This class should inherit from PageLocationActivityHelper.
        Throws:
        PageLayoutSystemException