OSID Logo
OSID Specifications
authorization package
Version 3.0.0
Release Candidate Preview
Interfaceosid.authorization.FunctionSearchSession
Implementsosid.authorization.FunctionQuerySession
Description

This session provides methods for searching Function objects. The search query is constructed using the FunctionQuery. The function record Type also specifies the record for the function query.

getFunctionsByQuery() is the basic search method and returns a list of Functions. A more advanced search may be performed with getFunctionsBySearch(). It accepts a FunctionSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getFunctionsBySearch() returns an FunctionSearchResults that can be used to access the resulting FunctionList or be used to perform a search within the result set through FunctionSearch.

This session defines views that offer differing behaviors for searching.

  • federated vault view: searches include functions in vaults of which this vault is a ancestor in the vault hierarchy
  • isolated vault view: searches are restricted to functions in this vault

Functions may have a query record indicated by their respective record types. The query record is accessed via the FunctionQuery.

MethodgetFunctionSearch
Description

Gets a function search.

Returnosid.authorization.FunctionSearchthe function search
CompliancemandatoryThis method must be implemented.
MethodgetFunctionSearchOrder
Description

Gets a function search order. The FunctionSearchOrder is supplied to a FunctionSearch to specify the ordering of results.

Returnosid.authorization.FunctionSearchOrderthe function search order
CompliancemandatoryThis method must be implemented.
MethodgetFunctionsBySearch
Description

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

Parametersosid.authorization.FunctionQueryfunctionQuerythe function query
osid.authorization.FunctionSearchfunctionSearchthe function search
Returnosid.authorization.FunctionSearchResultsthe returned search results
ErrorsNULL_ARGUMENT functionQuery or functionSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED functionSearch or functionQuery is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetFunctionQueryFromInspector
Description

Gets a function query from an inspector. The inspector is available from a FunctionSearchResults.

Parametersosid.authorization.FunctionQueryInspectorfunctionQueryInspectora function query inspector
Returnosid.authorization.FunctionQuerythe function query
ErrorsNULL_ARGUMENT functionQueryInspector is null
UNSUPPORTED functionQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.