OSID Logo
OSID Specifications
authorization package
Version 3.1.0
Interfaceosid.authorization.FunctionSearchSession
Implementsosid.authorization.FunctionQuerySession
Used Byosid.authorization.AuthorizationManager
osid.authorization.AuthorizationProxyManager
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.FunctionSearch the function search
Compliancemandatory This 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.FunctionSearchOrder the function search order
Compliancemandatory This method must be implemented.
MethodgetFunctionsBySearch
Description

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

Parametersosid.authorization.FunctionQueryfunctionQuery the function query
osid.authorization.FunctionSearchfunctionSearch the function search
Returnosid.authorization.FunctionSearchResults the returned search results
ErrorsNULL_ARGUMENT functionQuery or functionSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED functionSearch or functionQuery is not of this service
Compliancemandatory This method must be implemented.
MethodgetFunctionQueryFromInspector
Description

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

Parametersosid.authorization.FunctionQueryInspectorfunctionQueryInspector a function query inspector
Returnosid.authorization.FunctionQuery the function query
ErrorsNULL_ARGUMENT functionQueryInspector is null
UNSUPPORTED functionQueryInspector is not of this service
Compliancemandatory This method must be implemented.