com.ibm.portal.model.controller
Interface PortletModelControllerProvider


public interface PortletModelControllerProvider

Provider interface for portlet model controllers.

Since:
6.1.0

Method Summary
 PortletModelController com.ibm.portal.content.ContentPage, HttpServletRequest, HttpServletResponse)">createPortletModelController(ContentPage aPage, HttpServletRequest aRequest, HttpServletResponse aResponse)
          Creates a portlet model controller applicable to the portlet model of the current request and the given page.
 PortletModelController com.ibm.portal.portletmodel.PortletModel)">createPortletModelController(PortletModel portletModel)
          Creates a portlet model controller for the specified portlet model.
 

Method Detail
com.ibm.portal.portletmodel.PortletModel)">

createPortletModelController

PortletModelController createPortletModelController(PortletModel portletModel)
                                                    throws CannotInstantiateControllerException
Creates a portlet model controller for the specified portlet model. The model controller is not thread-safe and thus must only be used by one thread at any given time.

Parameters:
portletModel - the portlet model to get a controller for; the lifetime of the controller must not exceed the lifetime of the given portlet model.
Returns:
a portlet model controller
Throws:
CannotInstantiateControllerException - if the content model controller cannot be instantiated

com.ibm.portal.content.ContentPage, HttpServletRequest, HttpServletResponse)">

createPortletModelController

PortletModelController createPortletModelController(ContentPage aPage,
                                                    HttpServletRequest aRequest,
                                                    HttpServletResponse aResponse)
                                                    throws CannotInstantiateControllerException
Creates a portlet model controller applicable to the portlet model of the current request and the given page. The model controller is not thread-safe and thus must only be used by one thread at any given time.

Parameters:
aPage - the page the portlet model should be obtained for.
aRequest - the current request
aResponse - the current response
Returns:
a portlet model controller
Throws:
CannotInstantiateControllerException - if the content model controller cannot be instantiated