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

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

Field Detail

JNDI_NAME

static final java.lang.String JNDI_NAME
Since:
6.1.0.1
See Also:
Constant Field Values
Method Detail

getContentModel

<T extends java.lang.Object & ContentNode> ContentModel<T> getContentModel(javax.servlet.ServletRequest aRequest,
                                                                          javax.servlet.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