To determine if a request is for a category page, Commerce Reference Store includes a helper component, /atg/endeca/assembler/cartridge/StoreCartridgeTools. This component determines if the current request is for a category page and, if so, it returns the current category’s ID. The StoreCartridgeTools component is of class atg.projects.store.assembler.cartridge.StoreCartridgeTools, which includes these methods:

To do its tasks, the StoreCartridgeTools component has the following properties configured:

  • catalogNavigation - The CatalogNavigation component where the last browsed category is stored. Set by default to /atg/endeca/assembler/cartridge/manager/NavigationStateBuilder.catalogNavigation, which resolves to /atg/store/catalog/CatalogNavigation.

  • userState - The UserState component that holds the user segments list. Set by default to /atg/endeca/assembler/cartridge/manager/NavigationStateBuilder.userState, which resolves to /atg/endeca/assembler/cartridge/manager/user/LiveUserState.

  • categoryNavigationUserSegment - The name of the user segment that indicates a request is for a category page. Set by default to /atg/endeca/assembler/cartridge/manager/NavigationStateBuilder.userSegment, which resolves to CategoryOnly.

Because it references other request-scoped components, specifically /atg/endeca/assembler/cartridge/manager/user/LiveUserState, the StoreCartridgeTools component is also configured to be request-scoped.


Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices