com.ibm.portal.cor.service
Interface ContentModelProvider


public interface ContentModelProvider

An interface for a provider of content models. javax.naming.Context ctx = new javax.naming.InitialContext();
ContentModelHome home = (ContentModelHome) ctx.lookup(ContentModelHome.JNDI_NAME);
if (home != null) {
ContentModel model = home.getContentModelProvider().getContentModel(corCtx);
...
}

Since:
6.1.0.1
See Also:
ContentModelHome

Method Summary
<T extends ContentNode>
ContentModel<T>
getContentModel(Context aCtx)
          Returns the content model applicable in the COR context request.
 

Method Detail

getContentModel

<T extends ContentNode> ContentModel<T> getContentModel(Context aCtx)
                                                    throws ModelException
Returns the content model applicable in the COR context request.

Parameters:
aCtx - the COR context
Returns:
the content model valid in the current context
Throws:
ModelException - in case the model cannot be obtained