com.ibm.portal.portlet.service.model
Interface NavigationSelectionModelProvider
- All Superinterfaces:
- PortletService
-
public interface NavigationSelectionModelProvider
- extends PortletService
An interface for a provider of navigation models.
PortletServiceHome psh;
javax.naming.Context ctx = new javax.naming.InitialContext();
boolean serviceAvailable = false;
try {
psh = (PortletServiceHome) ctx.lookup("portletservice/com.ibm.portal.portlet.service.model.NavigationSelectionModelProvider");
serviceAvailable = true;
} catch(javax.naming.NameNotFoundException ex) {
... error handling ...
}
...
if (serviceAvailable) {
NavigationSelectionModelProvider provider = (NavigationSelectionModelProvider) psh.getPortletService(NavigationSelectionModelProvider.class);
NavigationSelectionModel model = provider.getNavigationSelectionModel(aRequest, aResponse);
...
}
- Since:
- 5.1.0.1
Field Summary
|
static java.lang.String |
JNDI_NAME
|
JNDI_NAME
static final java.lang.String JNDI_NAME
- Since:
- 6.1.0.1
- See Also:
- Constant Field Values
getNavigationSelectionModel
NavigationSelectionModel getNavigationSelectionModel(javax.portlet.PortletRequest aRequest,
javax.portlet.PortletResponse aResponse)
throws ModelException
- Returns the navigation selection model applicable in the current request.
- Parameters:
- aRequest - the current request
- aResponse - the current response
- Returns:
- the navigation selection model valid in the current request
- Throws:
- ModelException - in case the model cannot be obtained