com.ibm.portal.portlet
Interface AdminPortletModelController
- All Superinterfaces:
- AdminPortletModel, Committable, CommonPortletModelController, Controller, Disposable, LocatorProvider<Identifiable>, ModelController<Identifiable,ModifiableIdentifiable>
public interface AdminPortletModelController
- extends CommonPortletModelController, AdminPortletModel, Committable
A controller interface for the
AdminPortletModel
interface. This
controller is only able to deal (create, modify, delete) portlet definitions.
only
- Since:
- 7.0.0
create
ModifiableIdentifiable create(java.lang.Class aNodeClass,
CreationContext aContext)
throws CannotInstantiateModifiableNodeException
- Creates a modifiable node and inserts it into the model.
- Specified by:
create
in interface CommonPortletModelController
- Specified by:
create
in interface ModelController<Identifiable,ModifiableIdentifiable>
- Parameters:
aNodeClass
- interface class of node to insert. A
AdminPortletModelController
supports creation of
the following objects:
aContext
- a context specifying information about the node to create, may
be null
- Returns:
- a modifiable node;
- Throws:
CannotInstantiateModifiableNodeException
- in case the modifiable node cannot be instantiated
confirmInsert
boolean confirmInsert(PortletDefinition aNode)
throws ObjectNotFoundException
- Indicates if the specified portlet entity may be inserted at the
specified location in the portlet model.
- Parameters:
aNode
- node to affirm insertion for
- Returns:
true
in case the node may be inserted,
false
otherwise
- Throws:
ObjectNotFoundException
- in case one or more specified nodes cannot be found