com.ibm.portal
Interface LocatorProvider<E>

All Known Subinterfaces:
CommunicationEndpointProvider, ContentModel<E>, ContentModelController<T,M>, LanguageList<E>, LayoutModel<E>, LayoutModelController<T,M>, MarkupList<T>, NavigationModel<E>, NavigationSelectionModel<E>, com.ibm.portal.portletmodel.admin">PortletDefinitionList, PortletList, SearchableListModel<T>, SearchableTreeModel<E>, SearchableTreeModelController<T,M>, SelectionModel<T>, SkinList<T>, ThemeList<T>, WebApplicationList, WireModel<T>, WireModelController<T,M>

public interface LocatorProvider<E>

An interface providing a way to obtain a set of search methods.

Coding example:

     Locator loc = provider.getLocator();
     if (loc instanceof MyLocator) {
       String result = ((MyLocator) loc).myMethodCall();
       ...
     } else {
       String result = loc.findByUniqueName("myUniqueName");
       ...
     }
 

Since:
5.1.0.1
See Also:
Locator

Method Summary
 Locator<E> getLocator()
          Returns an interface that allows locating specific resources in a model.
 

Method Detail

getLocator

Locator<E> getLocator()
Returns an interface that allows locating specific resources in a model. Some models may return specialized locators that inherit from the universal locator interface.

Returns:
the search interface.