com.ibm.portal.model.controller
Interface ContentModelControllerHome
public interface ContentModelControllerHome
Home interface for JNDI based lookups for
com.ibm.portal.model.ContentModelControllerProvider. Note that this
service may be invoked from within portlets. See the following sample on how
to obtain a content model controller:
ContentModelController result = null;
final Context ctx = new InitialContext();
final ContentModelControllerHome home = (ContentModelControllerHome) ctx.lookup(ContentModelControllerHome.CONTENT_MODEL_CONTROLLER_JNDI_NAME);
if (home != null) {
result = home.getContentModelControllerProvider().createContentModelController(aContentModel);
}
- Since:
- 6.1.0
CONTENT_MODEL_CONTROLLER_JNDI_NAME
static final java.lang.String CONTENT_MODEL_CONTROLLER_JNDI_NAME
- JNDI lookup name for content model controller
- See Also:
- Constant Field Values
getContentModelControllerProvider
ContentModelControllerProvider getContentModelControllerProvider()
- Returns a content model provider.
- Returns:
- the provider, never
null