com.ibm.portal.model
Interface PortletModelProvider


public interface PortletModelProvider

An interface for a provider of portlet models. Context ctx = new InitialContext();
PortletModelHome home = (PortletModelHome) ctx.lookup("portal:service/model/PortletModel");
if (home != null) {
PortletModel model = home.getPortletModelProvider().getPortletModel(aPage, aRequest, aResponse);
...
}

Since:
6.0.1

Method Summary
 com.ibm.portal.portletmodel.admin">AdminPortletModel getAdminPortletModel(ServletRequest aRequest, ServletResponse aResponse)
          Returns the administraive portlet model applicable to the current request.
 PortletModel com.ibm.portal.content.ContentPage, ServletRequest, ServletResponse)">getPortletModel(ContentPage page, ServletRequest aRequest, ServletResponse aResponse)
          Returns the portlet model applicable to the given page in the current request.
 

Method Detail
com.ibm.portal.content.ContentPage, ServletRequest, ServletResponse)">

getPortletModel

PortletModel getPortletModel(ContentPage page,
                             ServletRequest aRequest,
                             ServletResponse aResponse)
                             throws ModelException
Returns the portlet model applicable to the given page in the current request.

Parameters:
aRequest - the current request
aResponse - the current response
Returns:
the portlet model valid in the current request
Throws:
ModelException - in case the model cannot be obtained

getAdminPortletModel

com.ibm.portal.portletmodel.admin">AdminPortletModel getAdminPortletModel(ServletRequest aRequest,
                                       ServletResponse aResponse)
                                       throws ModelException
Returns the administraive portlet model applicable to the current request.

Parameters:
aRequest - the current request
aResponse - the current response
Returns:
the adminstrative portlet model valid in the current request
Throws:
ModelException - in case the model cannot be obtained