com.ibm.portal.cp
Interface ResourceLocator<T>
- All Superinterfaces:
- Locator<T>
- All Known Subinterfaces:
- RatingLocator<R>, RatingModelLocator<R,S>, TagLocator<T>, TagModelLocator<T,S>
-
public interface ResourceLocator<T>
- extends Locator<T>
Generic locator that allows to search for nodes by a referenced
ObjectID, e. g. the
TagLocator allows to search for tags
by their referenced resource's ObjectID.
- Since:
- 7.0.0
findByResourceID
CountableIterablePagedListModel<T> findByResourceID(ObjectID resourceID,
Constants.OrderMetric orderMetric,
Constants.Order order)
throws ModelException
- Returns a list of nodes associated with the given resource object id
- Parameters:
- resourceID - The ObjectID of the resource to search for.
- orderMetric - (see Constants.OrderMetric) The order metric in which the
results are to be returned. May be null.
- order - (see Constants.Order) The order in which the
results are to be returned. May be null.
- Returns:
- A list of of associated resources
- Throws:
- ModelException
findByResourceIDs
CountableIterablePagedListModel<T> findByResourceIDs(java.util.Collection<ObjectID> resourceIDs,
Constants.OrderMetric orderMetric,
Constants.Order order)
throws ModelException
- Returns a list of nodes associated with the given resource object ids
- Parameters:
- resourceIDs - The ObjectIDs of resources to search for.
- orderMetric - (see Constants.OrderMetric) The order metric in which the
results are to be returned. May be null.
- order - (see Constants.Order) The order in which the
results are to be returned. May be null.
- Returns:
- A list of of associated resources
- Throws:
- ModelException