Portal, Express Beta Version 6.1
Operating systems: i5/OS, Linux,Windows |
The Controller SPI allows you to set flags for resources. For example, you can set a flag for a page so that portal users can bookmark the page.
You set flags for resources either on modifiable instances of those resources or on controllers managing the resources. The following flags are available:Flag | Flag is associated to resource | Flag is set on |
---|---|---|
ActiveFlag | ContentNode (resources that implement the ActiveFlag interface) | ModifiableContentNode |
BookmarkableFlag | ContentNode (resources that implement the BookmarkableFlag interface) | ModifiableContentNode |
ShareableFlag | ContentNode (resources that implement the ShareableFlag interface) | ModifiableContentNode |
AllPortletsAllowedFlag | ContentPage | LayoutModelController |
DeletableFlag | LayoutNode | LayoutModelController |
ModifiableFlag | LayoutNode | LayoutModelController |
// set modifiable flag on the layout model controller lmController.setDeletableFlag(container, true);Example 2 - Setting the BookmarkableFlag for a content page:
// obtain modifiable instance of an existing content page final Modifiable modifiable = cmController.getModifiableNode(page); // set modifiable flag on the modifiable instance ((ModifiableBookmarkableFlag) modifiable).setBookmarkableFlag(true);Parent topic: Modifying properties Related concepts