OSID Logo
OSID Specifications
assessment package
Version 3.0.0
Release Candidate Preview
Interfaceosid.assessment.BankQuery
Implementsosid.OsidCatalogQuery
Description

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

MethodmatchItemId
Description

Sets the item Id for this query.

Parametersosid.id.IditemIdan item Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT itemId is null
CompliancemandatoryThis method must be implemented.
MethodclearItemIdTerms
Description

Clears all item Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsItemQuery
Description

Tests if a ItemQuery is available.

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

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

Returnosid.assessment.ItemQuerythe item query
ErrorsUNIMPLEMENTED supportsItemQuery() is false
ComplianceoptionalThis method must be implemented if supportsItemQuery() is true.
MethodmatchAnyItem
Description

Matches assessment banks that have any item assigned.

Parametersbooleanmatch true to match banks with any item, false to match assessments with no item
CompliancemandatoryThis method must be implemented.
MethodclearItemTerms
Description

Clears all item terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAssessmentId
Description

Sets the assessment Id for this query.

Parametersosid.id.IdassessmentIdan assessment Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT assessmentId is null
CompliancemandatoryThis method must be implemented.
MethodclearAssessmentIdTerms
Description

Clears all assessment Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAssessmentQuery
Description

Tests if an AssessmentQuery is available.

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

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

Returnosid.assessment.AssessmentQuerythe assessment query
ErrorsUNIMPLEMENTED supportsAssessmentQuery() is false
ComplianceoptionalThis method must be implemented if supportsAssessmentQuery() is true.
MethodmatchAnyAssessment
Description

Matches assessment banks that have any assessment assigned.

Parametersbooleanmatch true to match banks with any assessment, false to match banks with no assessment
CompliancemandatoryThis method must be implemented.
MethodclearAssessmentTerms
Description

Clears all assessment terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAssessmentOfferedId
Description

Sets the assessment offered Id for this query.

Parametersosid.id.IdassessmentOfferedIdan assessment Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT assessmentOfferedId is null
CompliancemandatoryThis method must be implemented.
MethodclearAssessmentOfferedIdTerms
Description

Clears all assessment offered Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAssessmentOfferedQuery
Description

Tests if an AssessmentOfferedQuery is available.

Returnboolean true if an assessment offered query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAssessmentOfferedQuery
Description

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

Returnosid.assessment.AssessmentOfferedQuerythe assessment offered query
ErrorsUNIMPLEMENTED supportsAssessmentOfferedQuery() is false
ComplianceoptionalThis method must be implemented if supportsAssessmentOfferedQuery() is true.
MethodmatchAnyAssessmentOffered
Description

Matches assessment banks that have any assessment offering assigned.

Parametersbooleanmatch true to match banks with any assessment offering, false to match banks with no offering
CompliancemandatoryThis method must be implemented.
MethodclearAssessmentOfferedTerms
Description

Clears all assessment offered terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAncestorBankId
Description

Sets the bank Id for to match banks in which the specified bank is an acestor.

Parametersosid.id.IdbankIda bank Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT bankId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorBankIdTerms
Description

Clears all ancestor bank Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorBankQuery
Description

Tests if a BankQuery is available.

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

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

Returnosid.assessment.BankQuerythe bank query
ErrorsUNIMPLEMENTED supportsAncestorBankQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorBankQuery() is true.
MethodmatchAnyAncestorBank
Description

Matches a bank that has any ancestor.

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

Clears all ancestor bank terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDescendantBankId
Description

Sets the bank Id for to match banks in which the specified bank is a descendant.

Parametersosid.id.IdbankIda bank Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT bankId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantBankIdTerms
Description

Clears all descendant bank Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantBankQuery
Description

Tests if a BankQuery is available.

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

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

Returnosid.assessment.BankQuerythe bank query
ErrorsUNIMPLEMENTED supportsDescendantBankQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantBankQuery() is true.
MethodmatchAnyDescendantBank
Description

Matches a bank that has any descendant.

Parametersbooleanmatch true to match banks with any descendant banks, false to match leaf banks
CompliancemandatoryThis method must be implemented.
MethodclearDescendantBankTerms
Description

Clears all descendant bank terms.

CompliancemandatoryThis method must be implemented.
MethodgetBankQueryRecord
Description

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

Parametersosid.type.TypebankRecordTypea bank record type
Returnosid.assessment.records.BankQueryRecordthe bank query record
ErrorsNULL_ARGUMENT bankRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(bankRecordType) is false
CompliancemandatoryThis method must be implemented.