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(PortletModelHome.JNDI_NAME);
if (home != null) {
PortletModel model = home.getPortletModelProvider().getPortletModel(aPage, aRequest, aResponse);
...
}

Since:
6.0.1

Method Summary
 AdminPortletModel getAdminPortletModel(javax.servlet.ServletRequest aRequest, javax.servlet.ServletResponse aResponse)
          Returns the administraive portlet model applicable to the current request.
 PortletModel getPortletModel(ContentPage page, javax.servlet.ServletRequest aRequest, javax.servlet.ServletResponse aResponse)
          Returns the portlet model applicable to the given page in the current request.
 

Method Detail

getPortletModel

PortletModel getPortletModel(ContentPage page,
                             javax.servlet.ServletRequest aRequest,
                             javax.servlet.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

AdminPortletModel getAdminPortletModel(javax.servlet.ServletRequest aRequest,
                                       javax.servlet.ServletResponse aResponse)
                                       throws ModelException
Returns the administraive portlet model applicable to the current request.

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