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

All Superinterfaces:
org.apache.jetspeed.portlet.service.PortletService

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
extends org.apache.jetspeed.portlet.service.PortletService

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(org.apache.jetspeed.portlet.PortletRequest aRequest, org.apache.jetspeed.portlet.PortletResponse aResponse)
          Deprecated. Returns the administraive portlet model applicable to the current portlet request.
 PortletWindow getCurrentPortletWindow(org.apache.jetspeed.portlet.PortletRequest aRequest)
          Deprecated. Returns the portlet window for the given portlet request
 PortletModel getPortletModel(org.apache.jetspeed.portlet.PortletRequest aRequest, org.apache.jetspeed.portlet.PortletResponse aResponse)
          Deprecated. Returns the portlet model applicable in the current portlet request.
 

Method Detail

getPortletModel

PortletModel getPortletModel(org.apache.jetspeed.portlet.PortletRequest aRequest,
                             org.apache.jetspeed.portlet.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(org.apache.jetspeed.portlet.PortletRequest aRequest,
                                       org.apache.jetspeed.portlet.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(org.apache.jetspeed.portlet.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