com.ibm.portal.model.controller
Interface PortletModelControllerProvider


public interface PortletModelControllerProvider

Provider interface for portlet model controllers. NOTE: This API may only be used in the scope of an HTTP request in WebSphere Portal, i.e. within a theme. The API can not be invoked directly by a custom servlet.

Since:
6.1.0

Method Summary
 AdminPortletModelController createPortletModelController(AdminPortletModel adminPortletModel)
          Creates an admin portlet model controller for the specified admin portlet model.
 PortletModelController createPortletModelController(ContentPage aPage, javax.servlet.http.HttpServletRequest aRequest, javax.servlet.http.HttpServletResponse aResponse)
          Creates a portlet model controller applicable to the portlet model of the current request and the given page.
 PortletModelController createPortletModelController(PortletModel portletModel)
          Creates a portlet model controller for the specified portlet model.
 

Method Detail

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 portlet model controller cannot be instantiated

createPortletModelController

PortletModelController createPortletModelController(ContentPage aPage,
                                                    javax.servlet.http.HttpServletRequest aRequest,
                                                    javax.servlet.http.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 portlet model controller cannot be instantiated

createPortletModelController

AdminPortletModelController createPortletModelController(AdminPortletModel adminPortletModel)
                                                         throws CannotInstantiateControllerException
Creates an admin portlet model controller for the specified admin portlet model. The model controller is not thread-safe and thus must only be used by one thread at any given time.

Parameters:
adminPortletModel - the admin portlet model to get a controller for; the lifetime of the controller must not exceed the lifetime of the given portlet model.
Returns:
an admin portlet model controller
Throws:
CannotInstantiateControllerException - if the admin portlet model controller cannot be instantiated
Since:
7.0.0