OSID Logo
OSID Specifications
authorization package
Version 3.0.0
Release Candidate Preview
Interfaceosid.authorization.QualifierQuery
Implementsosid.OsidObjectQuery
osid.OsidFederateableQuery
Description

This is the query for searching qualifiers. 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.IdqualifierHierarchyIda hierarchy Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT qualifierHierarchyId is null
CompliancemandatoryThis method must be implemented.
MethodclearQualifierHierarchyIdTerms
Description

Clears the qualifier hierarchy Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsQualifierHierarchyQuery
Description

Tests if a HierarchyQuery is available.

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

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

Returnosid.hierarchy.HierarchyQuerythe qualifier hierarchy query
ErrorsUNIMPLEMENTED supportsQualifierHierarchyQuery() is false
ComplianceoptionalThis method must be implemented if supportsQualifierHierarchyQuery() is true.
MethodclearQualifierHierarchyTerms
Description

Clears the qualifier hierarchy query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAuthorizationId
Description

Sets the authorization Id for this query.

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

Clears the authorization Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAuthorizationQuery
Description

Tests if an AuthorizationQuery is available.

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

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

Returnosid.authorization.AuthorizationQuerythe authorization query
ErrorsUNIMPLEMENTED supportsAuthorizationQuery() is false
ComplianceoptionalThis method must be implemented if supportsAuthorizationQuery() is true.
MethodmatchAnyAuthorization
Description

Matches qualifiers that have any authorization mapping.

Parametersbooleanmatch true to match qualifiers with any authorization mapping, false to match qualifiers with no authorization mapping
CompliancemandatoryThis method must be implemented.
MethodclearAuthorizationTerms
Description

Clears the authorization query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAncestorQualifierId
Description

Sets the qualifier Id for this query to match qualifiers that have the specified qualifier as an ancestor.

Parametersosid.id.IdqualifierIda qualifier Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT qualifierId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorQualifierIdTerms
Description

Clears the ancestor qualifier Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorQualifierQuery
Description

Tests if a QualifierQuery is available.

Returnboolean true if a qualifier query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAncestorQualifierQuery
Description

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

Returnosid.authorization.QualifierQuerythe qualifier query
ErrorsUNIMPLEMENTED supportsAncestorQualifierQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorQualifierQuery() is true.
MethodmatchAnyAncestorQualifier
Description

Matches qualifiers that have any ancestor.

Parametersbooleanmatch true to match qualifiers with any ancestor, false to match root qualifiers
CompliancemandatoryThis method must be implemented.
MethodclearAncestorQualifierTerms
Description

Clears the ancestor qualifier query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDescendantQualifierId
Description

Sets the qualifier Id for this query to match qualifiers that have the specified qualifier as a descendant.

Parametersosid.id.IdqualifierIda qualifier Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT qualifierId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantQualifierIdTerms
Description

Clears the descendant qualifier Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantQualifierQuery
Description

Tests if a QualifierQuery is available.

Returnboolean true if a qualifier query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetDescendantQualifierQuery
Description

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

Returnosid.authorization.QualifierQuerythe qualifier query
ErrorsUNIMPLEMENTED supportsDescendantQualifierQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantQualifierQuery() is true.
MethodmatchAnyDescendantQualifier
Description

Matches qualifiers that have any ancestor.

Parametersbooleanmatch true to match qualifiers with any ancestor, false to match leaf qualifiers
CompliancemandatoryThis method must be implemented.
MethodclearDescendantQualifierTerms
Description

Clears the descendant qualifier query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchVaultId
Description

Sets the vault Id for this query.

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

Clears the vault Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsVaultQuery
Description

Tests if a VaultQuery is available.

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

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

Returnosid.authorization.VaultQuerythe vault query
ErrorsUNIMPLEMENTED supportsVaultQuery() is false
ComplianceoptionalThis method must be implemented if supportsVaultQuery() is true.
MethodclearVaultTerms
Description

Clears the vault query terms.

CompliancemandatoryThis method must be implemented.
MethodgetQualifierQueryRecord
Description

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

Parametersosid.type.TypequalifierRecordTypea qualifier record type
Returnosid.authorization.records.QualifierQueryRecordthe qualifier query record
ErrorsNULL_ARGUMENT qualifierRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(qualifierRecordType) is false
CompliancemandatoryThis method must be implemented.