+

Search Tips   |   Advanced Search

Obtaining a model from the portal

Portal models can be obtained using three different ways, depending on where the code using them resides.

Note the following limitations for obtaining a portal model:

  1. Portlets that use the following packages must not be enabled for parallel portlet rendering (PPR):

    • com.ibm.portal.admin.MarkupList

    • com.ibm.portal.admin.SkinList

    • com.ibm.portal.admin.ThemeList

    • com.ibm.portal.content.ContentMetaDataModel

    • com.ibm.portal.content.ContentModel

    • com.ibm.portal.navigation.NavigationModel

    • com.ibm.portal.navigation.NavigationSelectionModel

    • com.ibm.portal.portletmodel.PortletModel

    The restriction covers all the models that can be obtained from these packages.

  2. WSRP portlets must not use the Model SPI.

  3. Model access is only possible after the portal has initialized the request appropriately. Access is possible inside of code invoked through the portal servlet. Models cannot be accessed in servlet filters.


Parent: Model SPI overview
Related:
Sub packages of the Model SPI
Obtaining the object ID for a page or portlet
Filtering the content model
Model SPI samples
Remote Model SPI REST service