|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the type of node this model exposesM
- the modifiable version of the type of node this model exposespublic 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. Note: Adding allowed portlets is not possible on private pages. |
boolean |
addAllowedPortlets(java.util.Collection<ObjectID> portletIDs)
Adds the specified portlets to the list of allowed portlets for the last layer of the node. Note: Adding allowed portlets is not possible on private pages. |
boolean |
confirmAddAllowedPortlet(ObjectID portletID)
Indicates if the specified portlet may be added to the allowed portlets. Note: Setting allowed portlets is not possible on private pages. |
boolean |
confirmAddAllowedPortlets(java.util.Collection<ObjectID> portletIDs)
Indicates if the specified portlets may be added to the allowed portlets. Note: Setting allowed portlets is not possible on private pages. |
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. Note: Removing allowed portlets is not possible on private pages. |
boolean |
confirmRemoveAllowedPortlets()
Indicates if all portlets from the allowed portlets may be removed. Note: Removing allowed portlets is not possible on private pages. |
boolean |
confirmRemoveAllowedPortlets(java.util.Collection<ObjectID> portletIDs)
Indicates if the specified portlets may be remved from the allowed portlets. Note: Removing allowed portlets is not possible on private pages. |
boolean |
confirmRetainAllowedPortlets(java.util.Collection<ObjectID> portletIDs)
Indicates if th specified portlets may be retained in the allowed portlets. Note: Setting allowed portlets is not possible on private pages. |
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<Wire,ModifiableWire> |
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 Note: Removing allowed portlets is not possible on private pages. |
boolean |
removeAllowedPortlets()
Removes all allowed portlets for the last layer of the node. Note: Removing allowed portlets is not possible on private pages. |
boolean |
removeAllowedPortlets(java.util.Collection<ObjectID> portletIDs)
Removes the specified portlets from the list of allowed portlets for the last layer of the node Note: Removing allowed portlets is not possible on private pages. |
boolean |
retainAllowedPortlets(java.util.Collection<ObjectID> portletIDs)
Retains the specified portlets of the list of allowed portlets for the last layer of the node Note: Setting allowed portlets is not possible on private pages. |
boolean |
setAllPortletsAllowedFlag(boolean flag)
Sets the AllPortletsAllowed flag value. Note: Setting the allowed portlet flag is not possible on private pages. |
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.content.LayoutModel |
---|
getAllAllowedPortlets, getAllowedPortlets, getAllPortletsAllowedFlag, getDeletableFlag, getModifiableFlag, getObjectID, getTheme, hasContainerChild, hasControlChild, isActive, isAllPortletsAllowed, isBookmarkable, isDeletable, isModifiable, isShareable |
Methods inherited from interface com.ibm.portal.Invalidatable |
---|
invalidate, invalidate |
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, confirmInsert, delete, insert |
Methods inherited from interface com.ibm.portal.ModelController |
---|
confirmGetModifiableNode, 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.
create
in interface ModelController<T extends LayoutNode,M extends ModifiableLayoutNode>
aNodeClass
- interface class of node to insertaContext
- a context specifying information about the node to create, may
be null
. If the node class is
LayoutControl
, then a non-null
LayoutControlCreationContext
needs to be specified.
null
CannotInstantiateModifiableNodeException
- in case the modifiable node cannot be instantiatedboolean setDeletableFlag(T node, boolean value) throws ObjectNotFoundException, CannotModifyPropertyException
node
- node to set the deletable flag for. The flag is set for the
last layer of the nodevalue
- the new value of the flag
LayoutModel.getDeletableFlag(Object)
.
ObjectNotFoundException
- in case the specified node cannot be found
CannotModifyPropertyException
- in case the flag cannot be modifiedboolean setModifiableFlag(T node, boolean value) throws ObjectNotFoundException, CannotModifyPropertyException
node
- node to set the modifiable flag for. The flag is set for the
last layer of the nodevalue
- the new value of the flag
LayoutModel.getModifiableFlag(Object)
.
ObjectNotFoundException
- in case the specified node cannot be found
CannotModifyPropertyException
- in case the flag cannot be modifiedboolean setAllPortletsAllowedFlag(boolean flag) throws CannotModifyPropertyException
flag
- the new value of the flag
LayoutModel.getAllPortletsAllowedFlag()
.
CannotModifyPropertyException
- in case the flag cannot be modifiedboolean addAllowedPortlets(java.util.Collection<ObjectID> portletIDs) throws CannotModifyPropertyException
portletIDs
- Collection
of ObjectID
s of the
portlet definitions
true
if the portlets are added
CannotModifyPropertyException
- in case the portlets cannot be addedboolean addAllowedPortlet(ObjectID portletID) throws CannotModifyPropertyException
portletID
- ObjectID
of the portlet definition
true
if the portlet is removed
CannotModifyPropertyException
- in case the portlet cannot be addedboolean removeAllowedPortlet(ObjectID portletID) throws CannotModifyPropertyException
portletID
- ObjectID
of the portlet definition
true
if the portlet is removed
CannotModifyPropertyException
- in case the portlet cannot be removedboolean removeAllowedPortlets(java.util.Collection<ObjectID> portletIDs) throws CannotModifyPropertyException
portletIDs
- Collection
of ObjectID
s of
portlet definitions
true
if at least one portlet is removed as a
result of this call
CannotModifyPropertyException
- in case the portlets cannot be removedboolean removeAllowedPortlets() throws CannotModifyPropertyException
true
if at least one allowed portlet has been
removed as a result of this call
CannotModifyPropertyException
- in case the portlets cannot be removedboolean retainAllowedPortlets(java.util.Collection<ObjectID> portletIDs) throws CannotModifyPropertyException
portletIDs
- Collection
with ObjectID
s of
the portlet definitions
true
if the list of allowed portlets has changed
as a result of this call
CannotModifyPropertyException
- in case the portlets cannot be retainedboolean confirmCreate(java.lang.Class nodeClass, CreationContext context)
confirmCreate
in interface ModelController<T extends LayoutNode,M extends ModifiableLayoutNode>
nodeClass
- interface class for which to indicate if a node may be createdcontext
- creation context for which to indicate if a node may be
created, may be 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
node
- node for which to indicate if the deletable flag may be setvalue
- value for which to indicate if the deleteable flag may be set
to
true
if the deletable flag may be set,
false
otherwise
ObjectNotFoundException
- in case the specified node cannot be foundboolean confirmSetModifiableFlag(T node, boolean value) throws ObjectNotFoundException
node
- node for which to indicate if the modifiable flag may be setvalue
- value for which to indicate if the modifiable flag may be set
to
true
if the modifiable flag may be set,
false
otherwise
ObjectNotFoundException
- in case the specified node cannot be foundboolean confirmSetAllPortletsAllowedFlag(boolean flag)
flag
- value for which to indicate if the AllPortletsAllowed flag may
be set to
true
if the AllPortletsAllowed flag may be set,
false
otherwiseboolean confirmAddAllowedPortlets(java.util.Collection<ObjectID> portletIDs)
portletIDs
- Collection
of ObjectID
s of the
portlet definitions
true
if the specified portlets may be added to the
allowed portlets, false
otherwiseboolean confirmAddAllowedPortlet(ObjectID portletID)
portletID
- ObjectID
of the portlet definition
true
if the specified portlet may be added to the
allowed portlets, false
otherwiseboolean confirmRemoveAllowedPortlet(ObjectID portletID)
portletID
- ObjectID
of the portlet definition
true
if the portlet may be removed from the
allowed portlets, false
otherwiseboolean confirmRemoveAllowedPortlets(java.util.Collection<ObjectID> portletIDs)
portletIDs
- Collection
of ObjectID
s 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)
portletIDs
- Collection
of ObjectID
s of the
portlet definitions
true
if the specified portlets may be retained in
the allowed portlets, false
otherwisePortletModelController getPortletModelController() throws CannotInstantiateControllerException
Committable.commit()
on this controller has no
effect. Changes made to this controller are stored when the associated
content model controller is committed. Invoking
Disposable.dispose()
on this controller is not allowed.
null
CannotInstantiateControllerException
- in case a controller cannot
be instantiatedWireModelController<Wire,ModifiableWire> getWireModelController() throws CannotInstantiateControllerException
getWireModelController
in interface WireModelControllerProvider
CannotInstantiateControllerException
- in case the wire model controller can not be instantiated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |