Portlet Factory, Version 6.1.2
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. To get around validation you have three choices:
- Use ExplicitSelectionHandler
- You can temporarily set your profile set to use this handler, which does no validation.
- Use WebSphere Portlet Factory Administrator Role
- The SelectionHandlerBase class will not validate if you are in the FactoryAdministrators role. This name is property driven and can be changed by setting a property in the cluster.properties file. The property name is "bowstreet.security.bowstreetAdministratorsName". If not specified, this defaults to FactoryAdministrators
For example:
# specifies the name of the Factory Administrators role that is set in web.xml bowstreet.security.bowstreetAdministratorsName=FactoryAdministrators- Set developer mode flag
- The SelectionHandlerBase class will not validate if the developer mode flag is set. The flag can be set on or off through a property in the cluster.properties file. The property name is bowstreet.profile.developmentMode. If not specified this defaults to false.
Example:
# specifies that the server is in development mode, where explicit profile # selection rules are relaxed for testing purposes bowstreet.engine.developmentMode=falseParent topic: Using sample handlers
Library | Support |