Remote Model SPI REST service
The Remote Model SPI gives you access to portal models through REST services. It allows you to obtain and modify portal resources that are exposed by some of the models of the model SPI remotely, that is from clients that are outside the JVM of the server. This is achieved by means of REST services.
The Remote Model SPI supports the following models:
ContentModelThis allows you to obtain and modify the content topology and the properties of content nodes such as pages, labels, and content URLs.
NavigationModelThis allows you to obtain the navigation topology only, as the navigation model is implied by the structure of the content model.
LayoutModelThis allows you to obtain and modify the layout of a page, that is the topology of layout elements of a page, and the properties of layout elements, such as layout containers and layout controls.
PortletModelThis allows you to obtain, create, update, and delete portlets.
Note that the Remote Model SPI currently does not support the following models:The Remote Model SPI uses feeds in the Atom Syndication Format in conjunction with the Atom Threading Extension to expose model resources, and the HTTP-based Atom Publishing Protocol (APP) to modify portal resources. With the Remote Model SPI as a REST service, use the following HTTP verbs:
- LanguageList
- MarkupList
- SkinList
- ThemeList
- To obtain model information: HTTP GET
- To modify existing model information: HTTP PUT
- To create model resources: HTTP POST
- To delete model resources: HTTP DELETE
Parent
Model SPI overview
Sub packages of the Model SPI
Obtaining a model from the portal
Obtaining the object ID for a page or portlet
Model SPI samples