com.ibm.portal.portletmodel.admin
Interface PortletDefinitionLocator

All Superinterfaces:
Locator

public interface PortletDefinitionLocator
extends Locator

A locator the can be provided by com.ibm.portal.portletmodel.admin">PortletDefinitionList implementations. The locator is optionally implemented by a portlet definition list.

Code example:

 final PortletDefinitionList list = ...;
 final Locator loc = list.getLocator();
 if (loc instanceof PortletDefinitionLocator) {
     final PortletDefinitionLocator locator = (PortletDefinitionLocator) loc;
     final ListModel portletDefinitions = locator.getAllForPortlet(aPortlet);
 }
 

Since:
6.0.1

Method Summary
 ListModel com.ibm.portal.portletmodel.Portlet)">getAllForPortlet(Portlet aPortlet)
          Returns all portlet definitions that are associated with the given portlet
 
Methods inherited from interface com.ibm.portal.Locator
findByID, findByUniqueName
 

Method Detail
com.ibm.portal.portletmodel.Portlet)">

getAllForPortlet

ListModel getAllForPortlet(Portlet aPortlet)
                           throws ModelException,
                                  DataException
Returns all portlet definitions that are associated with the given portlet

Returns:
a list model with all portlet defintions for the given portlet; never returns null.
Throws:
DataException - if a database error occurs while accessing the data backend
ModelException - if an error occured while accessing model information