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

Class FetchTopCategoriesTaskCmdImpl

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


    public class FetchTopCategoriesTaskCmdImpl
    extends AbstractFetchCatalogGroupSOICmdImpl
    This fetch command retrieves all the top categories of the current catalog and store. The current catalog id is retrieved from CatalogContext using getCatalogContext() method in the CatalogComponentHelper helper classs. The store id is retrieved from the BaseContext using ,getStoreId() method in the CatalogComponentHelper helper class.
    Following is the xpath expression used to invoke this command:
    /CatalogGroup[@topCatalogGroup='true']

    Value for attribute 'topCatalogGroup' should always be 'true'.
    See Also:
    Serialized Form
    • Constructor Detail

      • FetchTopCategoriesTaskCmdImpl

        public FetchTopCategoriesTaskCmdImpl()
    • Method Detail

      • fetchCatalogGroups

        public java.util.ArrayList fetchCatalogGroups()
                                               throws CatalogApplicationException
        This method is used to fetch the top category data beans, given the catalog id. The category data beans will be the top categories of the catalog. The catalogId is passed as an XPath query parameter.
        Returns:
        an ArrayList containing the category data bean corresponding to the identifier.
        Throws:
        CatalogApplicationException - when the activation of the category data bean fails.