| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LayoutModelController<T extends LayoutNode,M extends ModifiableLayoutNode>
A controller interface for the LayoutModel interface.
Method Summary | |
---|---|
boolean | addAllowedPortlet(ObjectID portletID)
Adds the specified portlet to the list of allowed portlets for the last layer of the node. |
boolean | addAllowedPortlets(java.util.Collection<ObjectID> portletIDs)
Adds the specified portlets to the list of allowed portlets for the last layer of the node. |
boolean | confirmAddAllowedPortlet(ObjectID portletID)
Indicates if the specified portlet may be added to the allowed portlets. |
boolean | confirmAddAllowedPortlets(java.util.Collection<ObjectID> portletIDs)
Indicates if the specified portlets may be added to the allowed portlets. |
boolean | confirmCreate(java.lang.Class nodeClass,
CreationContext context)
Indicates if a modifiable layout node of the specified class and with the specified creation context may be created. |
boolean | confirmRemoveAllowedPortlet(ObjectID portletID)
Indicates if the specified portlet may be removed from the allowed portlets. |
boolean | confirmRemoveAllowedPortlets()
Indicates if all portlets from the allowed portlets may be removed. |
boolean | confirmRemoveAllowedPortlets(java.util.Collection<ObjectID> portletIDs)
Indicates if the specified portlets may be remved from the allowed portlets. |
boolean | confirmRetainAllowedPortlets(java.util.Collection<ObjectID> portletIDs)
Indicates if th specified portlets may be retained in the allowed portlets. |
boolean | confirmSetAllPortletsAllowedFlag(boolean flag)
Indicates if the AllPortletsAllowed flag may be set to the specified value. |
boolean | confirmSetDeletableFlag(T node,
boolean value)
Indicates if the deletable flag of the specified node may be set to the specified value. |
boolean | confirmSetModifiableFlag(T node,
boolean value)
Indicates if the modifiable flag of the specified node may be set to the specified value. |
M | create(java.lang.Class aNodeClass,
CreationContext aContext)
Creates a modifiable layout node. |
PortletModelController | getPortletModelController()
Returns a portlet model controller valid in the scope of this layout model controller. |
WireModelController | getWireModelController()
Returns a wire model controller valid in the scope of this layout model controller. |
boolean | removeAllowedPortlet(ObjectID portletID)
Removes the specified portlet from the list of allowed portlets for the last layer of the node |
boolean | removeAllowedPortlets()
Removes all allowed portlets for the last layer of the node. |
boolean | removeAllowedPortlets(java.util.Collection<ObjectID> portletIDs)
Removes the specified portlets from the list of allowed portlets for the last layer of the node |
boolean | retainAllowedPortlets(java.util.Collection<ObjectID> portletIDs)
Retains the specified portlets of the list of allowed portlets for the last layer of the node |
boolean | setAllPortletsAllowedFlag(boolean flag)
Sets the AllPortletsAllowed flag value. |
boolean | setDeletableFlag(T node,
boolean value)
Sets the deletable flag value. |
boolean | setModifiableFlag(T node,
boolean value)
Sets the modifiable flag value. |
Methods inherited from interface com.ibm.portal.TreeModel |
---|
getChildren, getParent, getRoot, hasChildren |
Methods inherited from interface com.ibm.portal.Invalidatable |
---|
invalidate, invalidate |
Methods inherited from interface com.ibm.portal.TreeModel |
---|
getChildren, getParent, getRoot, hasChildren |
Methods inherited from interface com.ibm.portal.LocatorProvider |
---|
getLocator |
Methods inherited from interface com.ibm.portal.TimeStamped |
---|
getCreated, getLastModified |
Methods inherited from interface com.ibm.portal.wire.WireModelProvider |
---|
getWireModel |
Methods inherited from interface com.ibm.portal.TreeModelController |
---|
confirmDelete, confirmInsert, delete, insert |
Methods inherited from interface com.ibm.portal.TreeModel |
---|
getChildren, getParent, getRoot, hasChildren |
Methods inherited from interface com.ibm.portal.ModelController |
---|
getModifiableNode, resolve |
Methods inherited from interface com.ibm.portal.TreeModel |
---|
getChildren, getParent, getRoot, hasChildren |
Methods inherited from interface com.ibm.portal.LocatorProvider |
---|
getLocator |
Method Detail |
---|
M create(java.lang.Class aNodeClass, CreationContext aContext) throws CannotInstantiateModifiableNodeException
insert
method
defined on a subinterface of this interface. The node will not appear in
the model unless it is inserted.
null
. If the node class is
LayoutControl, then a non-null
LayoutControlCreationContext needs to be specified.
null
boolean setDeletableFlag(T node, boolean value) throws ObjectNotFoundException, CannotModifyPropertyException
boolean setModifiableFlag(T node, boolean value) throws ObjectNotFoundException, CannotModifyPropertyException
boolean setAllPortletsAllowedFlag(boolean flag) throws CannotModifyPropertyException
boolean addAllowedPortlets(java.util.Collection<ObjectID> portletIDs) throws CannotModifyPropertyException
Collection
of ObjectIDs of the
portlet definitions
true
if the portlets are added
boolean addAllowedPortlet(ObjectID portletID) throws CannotModifyPropertyException
true
if the portlet is removed
boolean removeAllowedPortlet(ObjectID portletID) throws CannotModifyPropertyException
true
if the portlet is removed
boolean removeAllowedPortlets(java.util.Collection<ObjectID> portletIDs) throws CannotModifyPropertyException
Collection
of ObjectIDs of
portlet definitions
true
if at least one portlet is removed as a
result of this call
boolean removeAllowedPortlets() throws CannotModifyPropertyException
true
if at least one allowed portlet has been
removed as a result of this call
boolean retainAllowedPortlets(java.util.Collection<ObjectID> portletIDs) throws CannotModifyPropertyException
Collection
with ObjectIDs of
the portlet definitions
true
if the list of allowed portlets has changed
as a result of this call
boolean confirmCreate(java.lang.Class nodeClass, CreationContext context)
null
. If the node class is
LayoutControl, then a non-null
LayoutControlCreationContext needs to be specified.
true
if a node may be created, false
otherwiseboolean confirmSetDeletableFlag(T node, boolean value) throws ObjectNotFoundException
true
if the deletable flag may be set,
false
otherwise
boolean confirmSetModifiableFlag(T node, boolean value) throws ObjectNotFoundException
true
if the modifiable flag may be set,
false
otherwise
boolean confirmSetAllPortletsAllowedFlag(boolean flag)
true
if the AllPortletsAllowed flag may be set,
false
otherwiseboolean confirmAddAllowedPortlets(java.util.Collection<ObjectID> portletIDs)
Collection
of ObjectIDs of the
portlet definitions
true
if the specified portlets may be added to the
allowed portlets, false
otherwiseboolean confirmAddAllowedPortlet(ObjectID portletID)
true
if the specified portlet may be added to the
allowed portlets, false
otherwiseboolean confirmRemoveAllowedPortlet(ObjectID portletID)
true
if the portlet may be removed from the
allowed portlets, false
otherwiseboolean confirmRemoveAllowedPortlets(java.util.Collection<ObjectID> portletIDs)
Collection
of ObjectIDs of the
portlet definitions
true
if the portlets may be removed from the
allowed portlets, false
otherwiseboolean confirmRemoveAllowedPortlets()
true
if the all portlets may be removed from the
allowed portlets, false
otherwiseboolean confirmRetainAllowedPortlets(java.util.Collection<ObjectID> portletIDs)
Collection
of ObjectIDs of the
portlet definitions
true
if the specified portlets may be retained in
the allowed portlets, false
otherwisePortletModelController getPortletModelController() throws CannotInstantiateControllerException
null
WireModelController getWireModelController() throws CannotInstantiateControllerException
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |