Modify properties
The Controller SPI allows you to modify properties resources.
To modify properties of a resource...
- Obtain the appropriate controller for the model of which you want to modify a resource.
- Obtain a modifiable instance of the resource from that controller.
- Invoke the appropriate methods of the modifiable instance to perform the modifications.
- Persist the modifications by using the commit() method of the controller.
- Set titles and descriptions
Set the titles and descriptions of a resource.
- Set unique names
Set unique names for resources.
- Set metadata
Set metadata on all modifiable instances that implement the ModifiableMetaDataProvider interface.
- Set supported markups
Set supported markups on modifiable instances that implement the ModifiableMarkupCapable interface.
- Set the orientation for layout containers
Set the orientation for modifiable instances of LayoutContainer nodes.
- Set portlet preferences
Set the portlet preferences for portlet definitions and portlet entities.
- Set flags
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.
- Set themes
The Controller SPI allows you to set themes on modifiable instances that implement the ThemeSetter interface, for example ContentPage and ContentLabel.
- Set URLs
Set URLs to point to external content (ExternalContentURL) or to internal content, that is to nodes in the portal (InternalContentURL).
Parent topic:
Making modifications by using the Controller SPI
Related tasks
Modifying portal resources and topologies