|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentModelController<T extends ContentNode,M extends ModifiableContentNode>
A controller interface for the ContentModel
interface.
Method Summary | ||
---|---|---|
|
getLayoutModelController(ContentPage aContentPage)
Returns a layout model controller for the specified content page. |
Methods inherited from interface com.ibm.portal.content.ContentModel |
---|
getLayoutModel |
Methods inherited from interface com.ibm.portal.Invalidatable |
---|
invalidate, invalidate |
Methods inherited from interface com.ibm.portal.LocatorProvider |
---|
getLocator |
Methods inherited from interface com.ibm.portal.TreeModelController |
---|
confirmDelete, confirmInsert, confirmInsert, delete, insert |
Methods inherited from interface com.ibm.portal.TreeModel |
---|
getChildren, getParent, getRoot, hasChildren |
Methods inherited from interface com.ibm.portal.ModelController |
---|
confirmCreate, confirmGetModifiableNode, create, getModifiableNode, resolve |
Methods inherited from interface com.ibm.portal.Committable |
---|
commit, dispose |
Method Detail |
---|
<E extends LayoutNode,G extends ModifiableLayoutNode> LayoutModelController<E,G> getLayoutModelController(ContentPage aContentPage) throws CannotInstantiateControllerException
LayoutModelController
can only be obtained for
pages that either already exist or that were inserted already, i. e. the
following code will fail:
final ModifiableContentPage newPage = contentModelController.create(ContentPage.class, null) contentModelController.getLayoutModelController(newPage); // this will throw a CannotInstantiateControllerExceptionInstead this should be used:
// the create call creates an unmanaged node final ModifiableContentPage newPage = contentModelController.create(ContentPage.class, null) // Insert the node to make it known to controller contentModelController.insert(newPage, parent, sibling); // Now the layout might be generated... contentModelController.getLayoutModelController(newPage);
aContentPage
- content page to return a layout model controller for
null
CannotInstantiateControllerException
- in case a controller cannot be instantiated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |