com.ibm.portal.model.controller
Interface PortletModelControllerHome
public interface PortletModelControllerHome
An interface for a provider of portlet model controllers. See the following
sample on how to obtain a content model controller:
PortletModelController result = null;
final Context ctx = new InitialContext();
final PortletModelControllerHome home = (PortelModelControllerHome) ctx.lookup(PortletModelControllerHome.PORTLET_MODEL_CONTROLLER_JNDI_NAME);
if (home != null) {
result = home.getPortletModelControllerProvider().createPortletModelController(aPortelModel, aUser);
}
- Since:
- 6.1.0
PORTLET_MODEL_CONTROLLER_JNDI_NAME
static final java.lang.String PORTLET_MODEL_CONTROLLER_JNDI_NAME
- JNDI lookup name for portlet model controller
- See Also:
- Constant Field Values
getPortletModelControllerProvider
PortletModelControllerProvider getPortletModelControllerProvider()
- Returns a portlet model provider.
- Returns:
- the provider, never
null