|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
---|---|
ClientListControllerHome | Home interface for JNDI based lookups for
ClientListControllerProvider . |
ClientListControllerProvider | Provider interface for client list model controllers. |
ClientListHome | Home interface for JNDI based lookups for
ClientListProvider . |
ClientListProvider | An interface for a provider of client lists. |
ContentMetaDataModelHome | Home interface for JNDI based lookups for ContentMetaDataModelProvider . |
ContentMetaDataModelProvider | An interface for a provider of the content node meta data model. |
ContentModelHome | Home interface for JNDI based lookups for ContentModelProvider . |
ContentModelProvider | An interface for a provider of content models. |
CorLocalizedContextHome | A home interface for lookups to LocalizedContext
instances. |
CountableIterableListModel<E> | An iterable list model that is capable of it's size. |
CountableIterablePagedListModel<E> | An iterable list model that is capable of it's size and that supports paging. |
CountableListModel<E> | A list model that is capable of it's size. |
LanguageListHome | Home interface for JNDI based lookups for
LanguageListProvider . |
LanguageListProvider | An interface for a provider of the language list. |
LocalizedContext |
A helper object which allows to retrieve titles and descriptions for
resources implementing the Localized interface. |
LocalizedContextHome | A home interface for lookups to LocalizedContext
instances. |
LocalizedContextHome.ComparatorFactory | Factory to create a comparator per locale |
LocalizedStringResolver | Deprecated. instead, use LocalizedContext instances which can be obtained from PortalLocalizedContextHome and PortletLocalizedContextHome . |
MappingURLTreeModelHome | Deprecated. Use com.ibm.portal.model.VanityURLModelHome |
MappingURLTreeModelProvider | Deprecated. Use com.ibm.portal.model.VanityURLModelProvider |
MarkupListControllerHome | Home interface for JNDI based lookups for
MarkupListControllerProvider . |
MarkupListControllerProvider | Provider interface for markup list model controllers. |
MarkupListHome | Home interface for JNDI based lookups for
MarkupListProvider . |
MarkupListProvider | An interface for a provider of markup lists. |
NavigationModelHome | Home interface for JNDI based lookups for NavigationModelProvider . |
NavigationModelProvider | An interface for a provider of navigation models. |
NavigationSelectionModelHome | Home interface for JNDI based lookups for NavigationSelectionModelProvider . |
NavigationSelectionModelProvider | An interface for a provider of navigation models. |
PortalLocalizedContextHome | A home interface for lookups to LocalizedContext
instances. |
PortletModelHome | Home interface for JNDI based lookups for PortletModelProvider . |
PortletModelProvider | An interface for a provider of portlet models. |
ResourceBundleProvider | Allows to load a resource bundle when the set of supported localed for the bundle is known. |
SkinListControllerHome | Home interface for JNDI based lookups for
SkinListControllerProvider . |
SkinListControllerProvider | Provider interface for skin list model controllers. |
SkinListHome | Home interface for JNDI based lookups for SkinListProvider . |
SkinListProvider | An interface for a provider of skin lists. |
ThemeListControllerHome | Home interface for JNDI based lookups for
ThemeListControllerProvider . |
ThemeListControllerProvider | Provider interface for theme list model controllers. |
ThemeListHome | Home interface for JNDI based lookups for
ThemeListProvider . |
ThemeListProvider | An interface for a provider of theme lists. |
VanityURLModelHome | Entry point to the vanity URL model. |
VanityURLModelProvider | This interface provides access to the vanity URL model given a
request and
response . |
VirtualPortalListHome | Home interface for JNDI based lookups for
VirtualPortalListProvider . |
VirtualPortalListProvider | An interface for a provider of virtual portals. |
Enum Summary | |
---|---|
LocalizedContextHome.BASE_TEXT_DIRECTION | Enumerations of the base text direction for a given locale |
This package defines ways to obtain models through JNDI lookups.
The interfaces presented here can be used obtain "model providers" via a JNDI lookup.
For lookups in code with a ServletRequest
available, these lookups
can be used:
For lookups in code of a JSR portlet, the portlet service infrastructure is used.
See com.ibm.portal.portlet.service
for details on how to use this.
The single services are exposed in the package com.ibm.portal.portlet.service.model
.
For lookups in code of an IBM portlet, the IBM portlet service infrastructure is used.
See org.apache.jetspeed.portlet.service
for details on how to use this.
The single services are exposed in the package com.ibm.portal.ibmportlet.service.model
.
For lookups of ObjectID objects, these lookups can be used:
Accessing a model on a servlet level:
Context ctx = new InitialContext(); NavigationModelHome home = (NavigationModelHome) ctx.lookup("portal:service/model/NavigationModel"); if (home != null) { NavigationModel model = home.getNavigationModelProvider().getNavigationModel(aRequest, aResponse); ... }Accessing a model on a JSR 168 portlet level:
PortletServiceHome psh; javax.naming.Context ctx = new javax.naming.InitialContext(); boolean serviceAvailable = false; try { psh = (PortletServiceHome) ctx.lookup("portletservice/com.ibm.portal.portlet.service.model.NavigationModelProvider"); serviceAvailable = true; } catch(javax.naming.NameNotFoundException ex) { ... error handling ... } ... if (serviceAvailable) { NavigationModelProvider provider = (NavigationModelProvider) psh.getPortletService(NavigationModelProvider.class); ... }Accessing a model on a IBM legacy portlet level:
NavigationModelProvider provider = (NavigationModelProvider) aPortletContext.getService(com.ibm.portal.ibmportlet.service.model.NavigationModelProvider.class); if (provider != null) { NavigationModel model = provider.getNavigationModel(aRequest, aResponse); ... }Lookup ObjectID objects for unique names:
javax.naming.Context ctx = new InitialContext(); ObjectID oidForName = (ObjectID) ctx.lookup("portal:uniquename/unique name");Lookup ObjectID objects for portlet definitions by providing the portlet's application ID and the portlet's name:
javax.naming.Context ctx = new InitialContext(); ObjectID oidForName = (ObjectID) ctx.lookup("portal:config/portletdefinition/application guid/portlet name");
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |