Package com.ibm.portal.model.controller

The com.ibm.portal.model.controller package contains home and provider interfaces for model controllers.

See:
          Description

Interface Summary
ContentModelControllerHome Home interface for JNDI based lookups for com.ibm.portal.model.ContentModelControllerProvider.
ContentModelControllerProvider Provider interface for content model controllers.
ContentModelControllerResumeService The future - may be implemented after web2.0 tech preview: allow management of content model controllers across a prolonged time, e.g.
ContentModelControllerResumeService.Memento Interface acting as a handle for a suspended model controller.
PortletModelControllerHome An interface for a provider of portlet model controllers.
PortletModelControllerProvider Provider interface for portlet model controllers.
WireModelControllerProvider An interface for a provider of wire model controllers.
 

Class Summary
CreationContextBuilderFactory A factory for creating and combining CreationContexts.
 

Package com.ibm.portal.model.controller Description

The com.ibm.portal.model.controller package contains home and provider interfaces for model controllers.

Package Description

The com.ibm.portal.model.controller package contains home and provider interfaces for model controllers (see ModelController).

Package Specification

This package contains "home" and "provider" interfaces for controllers of portal models and follows the same pattern also used in com.ibm.portal.model to obtain read-only models.

A home interface can be obtained through a JNDI lookup. The home interface allows the retrieval of a provider interface, which ultimately allows to create an instance of a controller.

Example for obtaining a ContentModelController (error handling omitted):

final ContentModelController result;
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, aUser);
} else {
    result = null;
}