com.ibm.portal.ibmportlet.service.model
Interface PortletModelProvider


Deprecated. since 6.0.1. Support of the IBM portlet API may be removed in a future release of WebSphere Portal. Use of the Java Portlet API (javax.portlet) is recommended instead.

public interface PortletModelProvider

An interface for a provider of portlet models. PortletModelProvider provider = (PortletModelProvider) aPortletContext.getService(com.ibm.portal.ibmportlet.service.model.PortletModelProvider.class);
if (provider != null) {
PortletModel model = provider.getPortletModel(aRequest, aResponse);
...
}

Since:
6.0.1

Method Summary
 AdminPortletModel getAdminPortletModel(PortletRequest aRequest, PortletResponse aResponse)
          Deprecated. Returns the administraive portlet model applicable to the current portlet request.
 PortletWindow getCurrentPortletWindow(PortletRequest aRequest)
          Deprecated. Returns the portlet window for the given portlet request
 PortletModel getPortletModel(PortletRequest aRequest, PortletResponse aResponse)
          Deprecated. Returns the portlet model applicable in the current portlet request.
 

Method Detail

getPortletModel

PortletModel getPortletModel(PortletRequest aRequest,
                             PortletResponse aResponse)
                             throws ModelException
Deprecated. 
Returns the portlet model applicable in the current portlet 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(PortletRequest aRequest,
                                       PortletResponse aResponse)
                                       throws ModelException
Deprecated. 
Returns the administraive portlet model applicable to the current portlet request.

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

getCurrentPortletWindow

PortletWindow getCurrentPortletWindow(PortletRequest aRequest)
                                      throws ModelException
Deprecated. 
Returns the portlet window for the given portlet request

Parameters:
aRequest - the current request
Returns:
the portlet window matching the portlet request
Throws:
ModelException - in case the portlet window cannot be obtained