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

Class FetchCatalogByStoreIdCmdImpl

  • All Implemented Interfaces:
    FetchCatalogCmd, AbstractFetchNounCmd, com.ibm.websphere.command.Command, java.io.Serializable


    public class FetchCatalogByStoreIdCmdImpl
    extends AbstractFetchCatalogSOICmdImpl
    This fetch command will fetch Master Catalog or all the catalogs of a store depending upon the xpath expression. Based on the parameter passed in xpath expression, this class will fetch the Master Catalog if the values for 'Primary' attribute is 'true'. If value for 'Primary' attribute is 'false', it will fetch all the Catalogs for the given store. The store id used to retrieve catalogs, is retrieved from the Base Context. Following is the xpath expression used to invoke this command :
    '/Catalog[@primary=]'

      Possible values for attribute 'primary':
  • 'true' : retrieve only master catalog for the store.
  • 'false' : retrieve all the catalogs for the store.
See Also:
Serialized Form
    • Constructor Detail

      • FetchCatalogByStoreIdCmdImpl

        public FetchCatalogByStoreIdCmdImpl()
        The default constructor for this class. This constructor just calls the superclass constructor.
    • Method Detail

      • fetchCatalogs

        public java.util.ArrayList fetchCatalogs()
                                          throws CatalogApplicationException
        This method is used to fetch the master catalog or all catalogs of a store based on the value of the primary attribute passed in the XPath. If the primary values is set to true, the master catalog of the store is returned. Otherwise all the catalogs in the store will be returned. The store id used to retrieve catalogs, is retrieved from the Base Context.
        Returns:
        an ArrayList of Catalog data beans.
        Throws:
        CatalogApplicationException