The DAF
module is responsible for adding sites and site groups to the user segment list that is sent to the Assembler. The DAF
module includes the request-scoped /atg/endeca/assembler/cartridge/manager/user/LiveUserState
component. This component is of class atg.endeca.assembler.navigation.LiveUserState
. The LiveUserState
class is an extension of the com.endeca.infront.navigation.UserState
class that overrides the getUserSegments()
method with a call to a LiveUserState.computeSegments()
method that computes the list of sites and site groups to be added to the segment list that is sent to the Assembler. Segment names are added to the userSegments
property via the addUserSegments()
method.
The DAF
module contains the following configuration for the LiveUserState
component:
sitePrefix=site siteGroupPrefix=sitegroup prefixDelimiter=.
This configuration specifies that, when the LiveUserState
component adds a site to the segment list, it prefixes the site’s ID (as defined in the Site Manager UI) with the word site
and a period, for example:
site.MySite
A similar situation exists for site groups. Site group IDs are prefixed with sitegroup
and a period, for example:
sitegroup.MySiteGroup
It is important to remember that any segments added in the Workbench must also follow these naming conventions.