com.ibm.commerce.catalog.facade.server.commands

Class AbstractFetchCatalogSOICmdImpl

  • java.lang.Object
    • com.ibm.commerce.catalog.facade.server.commands.AbstractFetchCatalogSOICmdImpl
    • Field Summary

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

        serialVersionUID
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void execute()
      This method is used to call the appropriate fetch method based on the Xpath key.
      java.util.logging.Logger getLogger() 
      java.util.List getNouns()
      This method returns the list of nouns that have been retrieved by the business object manager that matches the specified XPath expression.
      ShowType getShow()
      Get the show type.
      ShowCatalogDataAreaType getShowCatalogDataArea() 
      boolean isReadyToCallExecute() 
      void reset()
      Resets the command fields, so that the getSelectionCriteriaMapper() and getShowCatalogDataArea() return null.
      void setGet(GetType getVerb)
      This method sets the get expression for the fetch operation.
      void setSearchExpression(SearchExpression searchExpression)
      Set the search expression.
      void setVersionCheck(java.lang.String versionCheck)
      This method sets whether the implementation is dependent on whether the version is found in the business object document request.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractFetchCatalogSOICmdImpl

        public AbstractFetchCatalogSOICmdImpl()
        The default constructor for the class.
    • Method Detail

      • getLogger

        public java.util.logging.Logger getLogger()
        Returns:
        The Logger for the class.
      • getShowCatalogDataArea

        public ShowCatalogDataAreaType getShowCatalogDataArea()
        Returns:
        the ShowCatalogDataAreaType containing the all the Catalog information to be displayed.
      • execute

        public void execute()
                     throws com.ibm.websphere.command.CommandException,
                            CatalogSystemException
        This method is used to call the appropriate fetch method based on the Xpath key. The compose command is instantiated from the CommandFactory, using the access profile key passed. The access profile key passed can be acquired from the instance of com.ibm.commerce.foundation.server.util.oagis.SelectionCriteriaMapper, which can be obtained by the getSelectionCriteriaMapper() method.
        Specified by:
        execute in interface com.ibm.websphere.command.Command
        Throws:
        CommandException, - when a runtime exception is caught.
        CatalogSystemException, - , when the Required parameters are not set or the compose command is not found.
        com.ibm.websphere.command.CommandException
        CatalogSystemException
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Returns:
        true if ready, false otherwise.
      • reset

        public void reset()
        Resets the command fields, so that the getSelectionCriteriaMapper() and getShowCatalogDataArea() return null.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
      • getNouns

        public java.util.List getNouns()
        This method returns the list of nouns that have been retrieved by the business object manager that matches the specified XPath expression.
        Specified by:
        getNouns in interface AbstractFetchNounCmd
        Returns:
        The list of nouns that represent the XPath expression.
      • setVersionCheck

        public void setVersionCheck(java.lang.String versionCheck)
        This method sets whether the implementation is dependent on whether the version is found in the business object document request. A verion of null with use this implementation and a none null version will use the FetchCatalogCmdImpl. The default behaviour is to perform this decision process of selecting which implementation to use.
        Parameters:
        versionCheck - Whether this version check needs to be enforced. A value of false means that this implementation will be used regardless if the version is specified in the business object document.