OSID Logo
OSID Specifications
recognition package
Version 3.0.0
Release Candidate Preview
Interfaceosid.recognition.AwardQuery
Implementsosid.OsidObjectQuery
Description

This is the query for searching for awards. Each method specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchConferralId
Description

Sets the conferral Id for this query to match conferrals assigned to awards.

Parametersosid.id.IdconferralIda conferral Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT conferralId is null
CompliancemandatoryThis method must be implemented.
MethodclearConferralIdTerms
Description

Clears the conferral Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsConferralQuery
Description

Tests if a conferral query is available.

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

Gets the query for an award.

Returnosid.recognition.ConferralQuerythe conferral query
ErrorsUNIMPLEMENTED supportsConferralQuery() is false
ComplianceoptionalThis method must be implemented if supportsConferralQuery() is true.
MethodmatchAnyConferral
Description

Matches awards with any conferral.

Parametersbooleanmatch true to match awards with any conferral, false to match awards with no conferrals
CompliancemandatoryThis method must be implemented.
MethodclearConferralTerms
Description

Clears the conferral terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAcademyId
Description

Sets the award Id for this query to match conferrals assigned to academies.

Parametersosid.id.IdacademyIdan academy Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT academyId is null
CompliancemandatoryThis method must be implemented.
MethodclearAcademyIdTerms
Description

Clears the academy Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAcademyQuery
Description

Tests if an AcademyQuery is available.

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

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

Returnosid.recognition.AcademyQuerythe academy query
ErrorsUNIMPLEMENTED supportsAcademyQuery() is false
ComplianceoptionalThis method must be implemented if supportsAcademyQuery() is true.
MethodclearAcademyTerms
Description

Clears the academy terms.

CompliancemandatoryThis method must be implemented.
MethodgetAwardQueryRecord
Description

Gets the award query record corresponding to the given Award record Type. Multiple record retrievals produce a nested boolean OR term.

Parametersosid.type.TypeawardRecordTypean award record type
Returnosid.recognition.records.AwardQueryRecordthe award query record
ErrorsNULL_ARGUMENT awardRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(awardRecordType) is false
CompliancemandatoryThis method must be implemented.