OSID Logo
OSID Specifications
authorization package
Version 3.1.0
Interfaceosid.authorization.FunctionQuery
Implementsosid.OsidRuleQuery
Used Byosid.authorization.AuthorizationQuery
osid.authorization.FunctionQuerySession
osid.authorization.FunctionSearchSession
osid.authorization.FunctionSmartVaultSession
osid.authorization.VaultQuery
osid.rules.check.CheckQuery
Description

This is the query for searching functions. Each method match request produces an AND term while multiple invocations of a method produces a nested OR.

MethodmatchQualifierHierarchyId
Description

Sets the qualifier hierarchy Id for this query.

Parametersosid.id.IdqualifierHierarchyId a hierarchy Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT qualifierHierarchyId is null
Compliancemandatory This method must be implemented.
MethodclearQualifierHierarchyIdTerms
Description

Clears the qualifier hierarchy Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsQualifierHierarchyQuery
Description

Tests if a HierarchyQuery is available.

Returnboolean true if a qualifier hierarchy query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetQualifierHierarchyQuery
Description

Gets the query for a qualifier hierarchy. Multiple retrievals produce a nested OR term.

Returnosid.hierarchy.HierarchyQuery the qualifier hierarchy query
ErrorsUNIMPLEMENTED supportsQualifierHierarchyQuery() is false
Complianceoptional This method must be implemented if supportsQualifierHierarchyQuery() is true.
MethodmatchAnyQualifierHierarchy
Description

Matches functions that have any qualifier hierarchy.

Parametersbooleanmatch true to match functions with any qualifier hierarchy, false to match functions with no qualifier hierarchy
Compliancemandatory This method must be implemented.
MethodclearQualifierHierarchyTerms
Description

Clears the qualifier hierarchy query terms.

Compliancemandatory This method must be implemented.
MethodmatchAuthorizationId
Description

Sets the authorization Id for this query.

Parametersosid.id.IdauthorizationId an authorization Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT authorizationId is null
Compliancemandatory This method must be implemented.
MethodclearAuthorizationIdTerms
Description

Clears the authorization Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsAuthorizationQuery
Description

Tests if an AuthorizationQuery is available.

Returnboolean true if an authorization query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAuthorizationQuery
Description

Gets the query for an authorization. Multiple retrievals produce a nested OR term.

Returnosid.authorization.AuthorizationQuery the authorization query
ErrorsUNIMPLEMENTED supportsAuthorizationQuery() is false
Complianceoptional This method must be implemented if supportsAuthorizationQuery() is true.
MethodmatchAnyAuthorization
Description

Matches functions that have any authorization mapping.

Parametersbooleanmatch true to match functions with any authorization mapping, false to match functions with no authorization mapping
Compliancemandatory This method must be implemented.
MethodclearAuthorizationTerms
Description

Clears the authorization query terms.

Compliancemandatory This method must be implemented.
MethodmatchVaultId
Description

Sets the vault Id for this query.

Parametersosid.id.IdvaultId a vault Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT vaultId is null
Compliancemandatory This method must be implemented.
MethodclearVaultIdTerms
Description

Clears the vault Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsVaultQuery
Description

Tests if a VaultQuery is available.

Returnboolean true if a vault query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetVaultQuery
Description

Gets the query for a vault. Multiple retrievals produce a nested OR term.

Returnosid.authorization.VaultQuery the vault query
ErrorsUNIMPLEMENTED supportsVaultQuery() is false
Complianceoptional This method must be implemented if supportsVaultQuery() is true.
MethodclearVaultTerms
Description

Clears the vault query terms.

Compliancemandatory This method must be implemented.
MethodgetFunctionQueryRecord
Description

Gets the function query record corresponding to the given Function record Type .Multiple retrievals produce a nested OR term.

Parametersosid.type.TypefunctionRecordType a function record type
Returnosid.authorization.records.FunctionQueryRecord the function query record
ErrorsNULL_ARGUMENT functionRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(functionRecordType) is false
Compliancemandatory This method must be implemented.