public interface ResourceSearchSession extends ResourceQuerySession
This session provides methods for searching among Resource
objects. The search query is constructed using the
ResourceQuery.
getResourcesByQuery() is the basic search method and
returns a list of Resources. A more advanced search may be
performed with getResourcesBySearch(). It accepts an
ResourceSearch in addition to the query for the purpose of
specifying additional options affecting the entire search, such as
ordering. getResourcesBySearch() returns an
ResourceSearchResults that can be used to access the resulting
ResourceList or be used to perform a search within the
result set through ResourceList.
This session defines views that offer differing behaviors for searching.
Resources may have a resource query record indicated by their
respective record types. The resource query record is accessed via the
ResourceQuery.
| Modifier and Type | Method and Description |
|---|---|
ResourceQuery |
getResourceQueryFromInspector(ResourceQueryInspector resourceQueryInspector)
Gets a resource query from an inspector.
|
ResourceSearchResults |
getResourcesBySearch(ResourceQuery resourceQuery,
ResourceSearch resourceSearch)
Gets the search results matching the given search query using the
given search.
|
ResourceSearch |
getResourceSearch()
Gets a resource search.
|
ResourceSearchOrder |
getResourceSearchOrder()
Gets a resource search order.
|
canSearchResources, getBin, getBinId, getResourceQuery, getResourcesByQuery, useFederatedBinView, useIsolatedBinViewgetAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseResourceSearch getResourceSearch()
mandatory - This method must be implemented. ResourceSearchOrder getResourceSearchOrder()
ResourceSearchOrder
is supplied to a ResourceSearch to specify the ordering
of results.mandatory - This method must be implemented. ResourceSearchResults getResourcesBySearch(ResourceQuery resourceQuery, ResourceSearch resourceSearch) throws OperationFailedException, PermissionDeniedException
resourceQuery - the resource queryresourceSearch - the resource searchNullArgumentException - resourceQuery or
resourceSearch is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - resourceQuery or
resourceSearch is not of this servicemandatory - This method must be implemented. ResourceQuery getResourceQueryFromInspector(ResourceQueryInspector resourceQueryInspector)
ResourceSearchResults. resourceQueryInspector - a resource query inspectorNullArgumentException - resourceQueryInspector
is null UnsupportedException - resourceQueryInspector
is not of this servicemandatory - This method must be implemented.