OSID Logo
OSID Specifications
billing package
Version 3.0.0
Release Candidate Preview
Interfaceosid.billing.CategorySearchSession
Implementsosid.billing.CategoryQuerySession
Description

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.

  • federated business view: searches include categories in businesses of which this business is an ancestor in the business hierarchy
  • isolated business view: searches are restricted to categories in this business

Categories may have a query record indicated by their respective record types. The queryrecord is accessed via the CategoryQuery.

MethodgetCategorySearch
Description

Gets a category search.

Returnosid.billing.CategorySearchthe category search
CompliancemandatoryThis method must be implemented.
MethodgetCategorySearchOrder
Description

Gets a category search order. The CategorySearchOrder is supplied to a CategorySearch to specify the ordering of results.

Returnosid.billing.CategorySearchOrderthe category search order
CompliancemandatoryThis method must be implemented.
MethodgetCategoriesBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.billing.CategoryQuerycategoryQuerythe category query
osid.billing.CategorySearchcategorySearchthe category search
Returnosid.billing.CategorySearchResultsthe category search results
ErrorsNULL_ARGUMENT categoryQuery or categorySearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED categoryQuery or categorySearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetCategoryQueryFromInspector
Description

Gets a category query from an inspector. The inspector is available from a CategorySearchResults.

Parametersosid.assessment.ItemQueryInspectorcategoryQueryInspectora category query inspector
Returnosid.billing.CategoryQuerythe category query
ErrorsNULL_ARGUMENT categoryQueryInspector is null
UNSUPPORTED categoryQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.