|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortletModelProvider
An interface for a provider of portlet 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.PortletModelProvider");
serviceAvailable = true;
} catch(javax.naming.NameNotFoundException ex) {
... error handling ...
}
...
if (serviceAvailable) {
PortletModelProvider provider = (PortletModelProvider) psh.getPortletService(PortletModelProvider.class);
PortletModel model = provider.getPortletModel(aRequest, aResponse);
...
}
Field Summary | |
---|---|
static java.lang.String |
JNDI_NAME
JNDI name for the service lookup |
Method Summary | |
---|---|
AdminPortletModel |
getAdminPortletModel(javax.portlet.PortletRequest aRequest,
javax.portlet.PortletResponse aResponse)
Returns the administraive portlet model applicable to the current portlet request. |
PortletWindow |
getCurrentPortletWindow(javax.portlet.PortletRequest aRequest)
Returns the portlet window for the given portlet request |
PortletModel |
getPortletModel(ContentPage aContentPage,
javax.portlet.PortletRequest aRequest,
javax.portlet.PortletResponse aResponse)
Returns the portlet model for the given content page. |
PortletModel |
getPortletModel(javax.portlet.PortletRequest aRequest,
javax.portlet.PortletResponse aResponse)
Returns the portlet model applicable in the current portlet request. |
Field Detail |
---|
static final java.lang.String JNDI_NAME
Method Detail |
---|
PortletModel getPortletModel(javax.portlet.PortletRequest aRequest, javax.portlet.PortletResponse aResponse) throws ModelException
aRequest
- the current requestaResponse
- the current response
ModelException
- in case the model cannot be obtainedPortletModel getPortletModel(ContentPage aContentPage, javax.portlet.PortletRequest aRequest, javax.portlet.PortletResponse aResponse) throws ModelException
aContentPage
- the content page to get the portlet model foraRequest
- the current requestaResponse
- the current response
ModelException
- in case the model cannot be obtainedAdminPortletModel getAdminPortletModel(javax.portlet.PortletRequest aRequest, javax.portlet.PortletResponse aResponse) throws ModelException
aRequest
- the current requestaResponse
- the current response
ModelException
- in case the model cannot be obtainedPortletWindow getCurrentPortletWindow(javax.portlet.PortletRequest aRequest) throws ModelException
aRequest
- the current request
ModelException
- in case the model cannot be obtained
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |