com.ibm.portal.model
Interface ThemeListControllerProvider


public interface ThemeListControllerProvider

Provider interface for theme list 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:
7.0

Method Summary
<T extends Theme,M extends ModifiableTheme>
ThemeListController<T,M>
createThemeListController(javax.servlet.http.HttpServletRequest aRequest, javax.servlet.http.HttpServletResponse aResponse)
          Creates a theme list model controller for the theme list model implied through the given request and response.
<T extends Theme,M extends ModifiableTheme>
ThemeListController<T,M>
createThemeListController(ThemeList<T> themeList)
          Creates a theme list model controller for the specified theme list model.
 

Method Detail

createThemeListController

<T extends Theme,M extends ModifiableTheme> ThemeListController<T,M> createThemeListController(ThemeList<T> themeList)
                                                                                         throws CannotInstantiateControllerException
Creates a theme list model controller for the specified theme list model. The model controller is not thread-safe and thus must only be used by one thread at any given time.

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

createThemeListController

<T extends Theme,M extends ModifiableTheme> ThemeListController<T,M> createThemeListController(javax.servlet.http.HttpServletRequest aRequest,
                                                                                               javax.servlet.http.HttpServletResponse aResponse)
                                                                                         throws CannotInstantiateControllerException
Creates a theme list model controller for the theme list model implied through the given request and response. The model controller is not thread-safe and thus must only be used by one thread at any given time.

Parameters:
aRequest - the current request
aResponse - the current response
Returns:
a theme list model controller
Throws:
CannotInstantiateControllerException - if the theme list model controller cannot be instantiated