Portlet Factory, Version 6.1.2


 

Extending the SelectionHandlerBase class

The SelectionHandlerBase base class includes the following methods that facilitate the development of profile selection handlers:

  • The getProfileBySegment() method returns the most-derived (least-privileged) profile given one or more segments.

  • Handling explicit profile validation. The explicit profile validation checks:

    • Whether the profile exists

    • Whether the user's segments match one of the segments in the specified profile.

      Note: If the profile does not have any segments specified then it can be selected without a user segment match.

  • The getUser() method returns the user ID associated with the request

The SelectionHandler class implements the ProfileSelection interface, which provides

init()

Performs any initialization before the selectProfile() method executes.

selectProfile()

Selects a profile from the specified profile set that is passed in and returns its name. The IBM® WebSphere Portlet Factory servlet generates a new instance of the WebApp according the profile entry values specified by the returned profile name.

Parent topic: Creating profile selection handlers


Library | Support |