com.ibm.portal.model
Interface ContentModelProvider

All Known Subinterfaces:
ContentModelControllerResumeService

public interface ContentModelProvider

An interface for a provider of content models. Context ctx = new InitialContext();
ContentModelHome home = (ContentModelHome) ctx.lookup("portal:service/model/ContentModel");
if (home != null) {
ContentModel model = home.getContentModelProvider().getContentModel(aRequest, aResponse);
...
}

Since:
5.1.0.1

Method Summary
<T extends java.lang.Object & ContentNode>
ContentModel<T>
getContentModel(ServletRequest aRequest, ServletResponse aResponse)
          Returns the content model applicable in the current request.
 

Method Detail

getContentModel

<T extends java.lang.Object & ContentNode> ContentModel<T> getContentModel(ServletRequest aRequest,
                                                                          ServletResponse aResponse)
                                                                      throws ModelException
Returns the content model applicable in the current request.

Parameters:
aRequest - the current request
aResponse - the current response
Returns:
the content model valid in the current request
Throws:
ModelException - in case the model cannot be obtained