Portlet Factory, Version 6.1.2
About setting the profile selection handler
In the Select Handler editor of the profile manager, you can set the profile selection handler class to use for the current profile set. You can also declare a value selector class that dynamically assigns data to the profile values in the profile set.
Key terms
The following terms are important to understand in the description of profile selection handlers:
- Segment
- A categorization that you associate with a profile. Common segment types include J2EE Roles and LDAP groups. You can create your own segment types by implementing the com.bowstreet.profiles.SegmentList interface.
Note: The profile selection handler matches a request with a segment and returns the profile associated with that segment. If the request corresponds with more than one segment, the profile selection handler returns the "most-derived" profile.
- Profile
- A collection of profile entry values that determine the values for profiled builder call inputs. You can associate a profile with a segment when you create or edit the profile. You can also create a Profile Selection Handler to implement your own segment/profile associations.
Setting the profile selection handler class to use for the current profile set involves:
- Setting the profile selection handler for the profile set.
- Specifying a value setter for the profile set.
- Creating profile selection handlers.
- Creating profile entry value setters.
Parent topic: Profile selection and storage management
- Profile selection and storage management
The profile selection functionality provides a pluggable profile selection mechanism based on handlers (and configuration information for each handler) where any available profile selection handler can be selected for use with each profile set.
- Creating profile selection handlers
Profile selection handlers are defined by the following.
- Creating profile entry value setters
You can assign the values for profile entries at generation time.
- Setting the profile selection handler for a profile set
You can set the profile selection handler for a profile set.
- Specifying a value setter for the profile set
You can specify a Java class that assigns values to entries in the profile set.
- Creating a handler definition
You can create a new handler definition by copying an existing handler definition file and saving it with a different name.
Library | Support |