Friday, 28 October 2016

UserSegments in Endeca

If you want display content only to the specified set of people, then you need to have the User segment configure in the Xm .

You can add the usersegment by the following ways.











Once you added the usersegment then you should progrmatically add by the following way.

Step:1
create a class implements NavigationStateProcessor

Step:2
Override the method process.
@Override
public void process(final NavigationState pArg0) {

//custom business logic

getUserState().addUserSegments(“men”);

}
In the Component file define the following things

userstate =/atg/endeca/assembler/cartridge/manager/user/LiveUserState

We have to write a custom logic when the Usersegment can be applied on the particular condition.

Register this component in /atg/endeca/assembler/cartridge/manager/NavigationStateBuilder

in the property navigationStateProcessors

No comments:
Write comments