com.ibm.portal.model.controller
Interface ContentModelControllerProvider


public interface ContentModelControllerProvider

Provider interface for content model controllers.

Since:
6.1.0

Method Summary
<T extends ContentNode,M extends ModifiableContentNode>
ContentModelController<T,M>
com.ibm.portal.content.ContentModel)">createContentModelController(ContentModel contentModel)
          Creates a content model controller for the specified content model.
<T extends ContentNode,M extends ModifiableContentNode>
ContentModelController<T,M>
createContentModelController(HttpServletRequest aRequest, HttpServletResponse aResponse)
          Creates a content model controller for the content model implied through the given request and response.
 

Method Detail
com.ibm.portal.content.ContentModel)">

createContentModelController

<T extends ContentNode,M extends ModifiableContentNode> ContentModelController<T,M> createContentModelController(ContentModel contentModel)
                                                                                                           throws CannotInstantiateControllerException
Creates a content model controller for the specified content model. The model controller is not thread-safe and thus must only be used by one thread at any given time.

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

createContentModelController

<T extends ContentNode,M extends ModifiableContentNode> ContentModelController<T,M> createContentModelController(HttpServletRequest aRequest,
                                                                                                                 HttpServletResponse aResponse)
                                                                                                           throws CannotInstantiateControllerException
Creates a content model controller for the content 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 content model controller
Throws:
CannotInstantiateControllerException - if the content model controller cannot be instantiated