com.ibm.portal.portlet.service.model
Interface VirtualPortalListProvider

All Superinterfaces:
PortletService

public interface VirtualPortalListProvider
extends PortletService

An interface for a provider of virtualPortal lists.

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.VirtualPortalListProvider");
serviceAvailable = true;
} catch(javax.naming.NameNotFoundException ex) {
... error handling ...
}
...
if (serviceAvailable) {
VirtualPortalListProvider provider = (VirtualPortalListProvider) psh.getPortletService(VirtualPortalListProvider.class);
VirtualPortalList list = provider.getVirtualPortalList(aRequest, aResponse);
...
}

Since:
7.0

Field Summary
static java.lang.String JNDI_NAME
           
 
Method Summary
<T extends java.lang.Object & VirtualPortal>
VirtualPortalList<T>
getVirtualPortalList(javax.portlet.PortletRequest aRequest)
          Returns the portal virtualPortal list.
 

Field Detail

JNDI_NAME

static final java.lang.String JNDI_NAME
Since:
8.5
See Also:
Constant Field Values
Method Detail

getVirtualPortalList

<T extends java.lang.Object & VirtualPortal> VirtualPortalList<T> getVirtualPortalList(javax.portlet.PortletRequest aRequest)
                                                                                  throws ModelException
Returns the portal virtualPortal list.

Parameters:
aRequest - the current request
Returns:
the virtualPortal list valid in the current request
Throws:
ModelException