Portlet Factory, Version 6.1.2
Using sample handlers
Several sample handlers are available in IBM® WebSphere Portlet Factory. The implementation classes for the sample Profile Selection handlers are built into product and the source code for them is provided. They are located in the \J2EERoot\WEB-INF\work\selectionhandlers.zip file.
Each of the sample selection handlers cla_sses use a common base class that provides some commonly used functionality. The source for the base class is also provided. The following section describes each of the samples. You should also review the source code and the JavaDoc for the following classes and interfaces to get a better understanding of how they work.
For classes:
- com.bowstreet.profiles.ProfileSelection
- com.bowstreet.profiles.SegmentList
- com.bowstreet.profiles.SelectionHandlerBase
For handlers:
- com.bowstreet.profiles.FileSegmentSelectionHandler
- com.bowstreet.profiles.J2EERoleProfileSelection
- com.bowstreet.profiles.ExplicitSelectionHandler
- com.bowstreet.profiles.LDAPSelectionHandler
Parent topic: Profile selection and storage mechanisms
- Ignoring explicit profile selection validation
There are cases where validation can get in the way of a developer trying to test an application with different profiles selected.
- SelectionHandlerBase
All of the sample handlers extend the SelectionHandlerBase class.
- ExplicitSelectionHandler
This handler is very simple and handles only support for specifying explicit profiles without doing any validation.
- FileSegmentSelectionHandler
You use the File Segment Selection handler to select a profile for a user by matching their segment data to a matching profile segment within a specified profile set.
- J2EERoleProfileSelectionHandler
The J2EE Role Profile Selection Handler is used to select a profile for a user by matching the J2EE roles that the user is in, to a corresponding role specified in a profile.
- LDAPSelectionHandler
The LDAP Profile Selection Handler is used to select a profile for a user.
- User Attribute Handler
The User Attribute Handler is a profile selection handler used to select a profile for a user.
- WebSphere Portal Composite Application Selection Handler
The IBM WebSphere Portal Composite Application Selection Handler is used to select a profile based on the WebSphere Portal Composite Application Role that the user is in.
Library | Support |