public interface CategorySearchSession extends CategoryQuerySession
This session provides methods for searching among Category
objects. The search query is constructed using the
CategoryQuery.
getCategoriesByQuery() is the basic search method and
returns a list of Categories. A more advanced search may be
performed with getCategoriesBySearch(). It accepts a
CategorySearch in addition to the query for the purpose of
specifying additional options affecting the entire search, such as
ordering. getCategoriesBySearch() returns a
CategorySearchResults that can be used to access the resulting
CategoryList or be used to perform a search within the
result set through CategorySearch.
This session defines views that offer differing behaviors for searching.
Categories may have a query record indicated by their respective
record types. The queryrecord is accessed via the CategoryQuery.
| Modifier and Type | Method and Description |
|---|---|
CategorySearchResults |
getCategoriesBySearch(CategoryQuery categoryQuery,
CategorySearch categorySearch)
Gets the search results matching the given search query using the
given search.
|
CategoryQuery |
getCategoryQueryFromInspector(ItemQueryInspector categoryQueryInspector)
Gets a category query from an inspector.
|
CategorySearch |
getCategorySearch()
Gets a category search.
|
CategorySearchOrder |
getCategorySearchOrder()
Gets a category search order.
|
canSearchCategories, getBusiness, getBusinessId, getCategoriesByQuery, getCategoryQuery, useFederatedBusinessView, useIsolatedBusinessViewgetAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseCategorySearch getCategorySearch()
mandatory - This method must be implemented. CategorySearchOrder getCategorySearchOrder()
CategorySearchOrder
is supplied to a CategorySearch to specify the ordering
of results.mandatory - This method must be implemented. CategorySearchResults getCategoriesBySearch(CategoryQuery categoryQuery, CategorySearch categorySearch) throws OperationFailedException, PermissionDeniedException
categoryQuery - the category querycategorySearch - the category searchNullArgumentException - categoryQuery or
categorySearch is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - categoryQuery or
categorySearch is not of this servicemandatory - This method must be implemented. CategoryQuery getCategoryQueryFromInspector(ItemQueryInspector categoryQueryInspector)
CategorySearchResults. categoryQueryInspector - a category query inspectorNullArgumentException - categoryQueryInspector
is null UnsupportedException - categoryQueryInspector
is not of this servicemandatory - This method must be implemented.