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

Class FetchLayoutByPageCmdImpl

  • All Implemented Interfaces:
    AbstractFetchNounCmd, FetchLayoutCmd, 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 FetchLayoutByPageCmdImpl
    extends AbstractFetchNounCmdImpl
    implements FetchLayoutCmd
      This command fetches the applicable layouts for a page with given Page Group and Page Id.
    • Calls LayoutActivityHelper to get all the page location activities with the page group and page id resolved from XPATH.
    • Calls DataServiceFacade to get all the layouts with the page layout ids resolved from page location activities.
    • Calls PageLocationMediationHelper to compose the page location information for the layout nouns.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class com.ibm.websphere.command.TargetableCommandImpl

        LOCAL
      • Fields inherited from interface com.ibm.websphere.command.Command

        serialVersionUID
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.List getNouns()
      This method returns the list of layout nouns.
      void performExecute()
      Performs the main logic of this command. Calls PageLocationActivityHelper to get all the page location activities with the page group and page id resolved from XPATH. Calls DataServiceFacade to get all the layouts with the page layout ids resolved from page location activities. Calls PageLocationMediationHelper to compose the page location information for the layout nouns.
      void setPageLocationActivityHelper(java.lang.String activityHelperClassName)
      This method sets the Page Location Activity Helper used by this class.
      • 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.websphere.command.Command

        execute, isReadyToCallExecute, reset
      • Methods inherited from interface com.ibm.websphere.command.TargetableCommand

        getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
    • Constructor Detail

      • FetchLayoutByPageCmdImpl

        public FetchLayoutByPageCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws java.lang.Exception
          Performs the main logic of this command.
        • Calls PageLocationActivityHelper to get all the page location activities with the page group and page id resolved from XPATH.
        • Calls DataServiceFacade to get all the layouts with the page layout ids resolved from page location activities.
        • Calls PageLocationMediationHelper to compose the page location information for the layout nouns.
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Specified by:
        performExecute in class com.ibm.websphere.command.TargetableCommandImpl
        Throws:
        java.lang.Exception
      • 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
      • getNouns

        public java.util.List getNouns()
        This method returns the list of layout nouns. Builds an empty list if no layout noun is found by this command.
        Specified by:
        getNouns in interface AbstractFetchNounCmd
        Returns:
        The list of nouns.