+

Search Tips   |   Advanced Search

 PREV CLASS   NEXT CLASS
Tree 
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

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
           
 
Method Summary
 NavigationSelectionModel getNavigationSelectionModel(javax.portlet.PortletRequest aRequest, javax.portlet.PortletResponse aResponse)
          Return the navigation selection model applicable in the current request.
 

Field Detail

JNDI_NAME

static final java.lang.String JNDI_NAME
Since:
6.1.0.1
See Also:
Constant Field Values
Method Detail

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
 PREV CLASS   NEXT CLASS
Tree 
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD