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

Class FetchChildrenCategoriesOfCategoryTaskCmdImpl

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


    public class FetchChildrenCategoriesOfCategoryTaskCmdImpl
    extends AbstractFetchCatalogGroupSOICmdImpl
    This fetch command retrieves all the children categories of a given catalog group and store. Catalog group id is passed as a parameter in xpath expression and the store id is retrieved from the BaseContext using ,getStoreId() method in the CatalogComponentHelper helper classs. This command also checks if the current user is entitled to see retrieved catalog group data. If current user is entitled, the Catalog Group data is returned otherwise an empty Show BOD is returned to the client.
    Following is the xpath expression used to invoke this command:
    '/CatalogGroup[ParentCatalogGroupIdentifier[(UniqueID=)]]'
    UniqueID: valid catalog group id of parent catalog group.
    See Also:
    Serialized Form
    • Constructor Detail

      • FetchChildrenCategoriesOfCategoryTaskCmdImpl

        public FetchChildrenCategoriesOfCategoryTaskCmdImpl()
    • Method Detail

      • fetchCatalogGroups

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