Obtaining a model from the portal

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


Portlet service (standard portlet API)


Portlet service (IBM Portlet API)


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 the above 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
Sub packages of the Model SPI
Obtaining the object ID for a page or portlet
Model SPI samples
Remote Model SPI REST service

 


+

Search Tips   |   Advanced Search