OSID Logo
OSID Specifications
course syllabus package
Version 3.0.0
Release Candidate Preview
Interfaceosid.course.syllabus.DocetQuery
Implementsosid.OsidRelationshipQuery
Description

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

MethodmatchModuleId
Description

Sets the module Id for this query.

Parametersosid.id.IdmoduleIda module Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT moduleId is null
CompliancemandatoryThis method must be implemented.
MethodclearModuleIdTerms
Description

Clears the module Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsModuleQuery
Description

Tests if a module query is available.

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

Gets the query for a module.

Returnosid.course.syllabus.ModuleQuerythe module query
ErrorsUNIMPLEMENTED supportsModuleQuery() is false
ComplianceoptionalThis method must be implemented if supportsModuleQuery() is true.
MethodclearModuleTerms
Description

Clears the module terms.

CompliancemandatoryThis method must be implemented.
MethodmatchActivityUnitId
Description

Sets the activity unit Id for this query.

Parametersosid.id.IdactivityUnitIdan activity unit Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT activityUnitId is null
CompliancemandatoryThis method must be implemented.
MethodclearActivityUnitIdTerms
Description

Clears the activity unit Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsActivityUnitQuery
Description

Tests if an activity unit query is available.

Returnboolean true if an activity unit query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetActivityUnitQuery
Description

Gets the query for an activity unit.

Returnosid.course.ActivityUnitQuerythe activity unit query
ErrorsUNIMPLEMENTED supportsActivityUnitQuery() is false
ComplianceoptionalThis method must be implemented if supportsActivityUnitQuery() is true.
MethodclearActivityUnitTerms
Description

Clears the activity unit terms.

CompliancemandatoryThis method must be implemented.
MethodmatchLearningObjectiveId
Description

Sets the objective Id for this query.

Parametersosid.id.IdobjectiveIdan objective Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT objectiveId is null
CompliancemandatoryThis method must be implemented.
MethodclearLearningObjectiveIdTerms
Description

Clears the objective Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsLearningObjectiveQuery
Description

Tests if an ObjectiveQuery is available for querying objectives.

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

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

Returnosid.learning.ObjectiveQuerythe objective query
ErrorsUNIMPLEMENTED supportsLearningObjectiveQuery() is false
ComplianceoptionalThis method must be implemented if supportsLearningObjectiveQuery() is true.
MethodmatchAnyLearningObjective
Description

Matches a docet that has any objective assigned.

Parametersbooleanmatch true to match docets with any objective, false to match docets with no objective
CompliancemandatoryThis method must be implemented.
MethodclearLearningObjectiveTerms
Description

Clears the objective terms.

CompliancemandatoryThis method must be implemented.
MethodmatchInClass
Description

Matches docets that occur in a class.

Parametersbooleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT assetId is null
CompliancemandatoryThis method must be implemented.
MethodclearInClassTerms
Description

Clears the in class terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDuration
Description

Matches durations between the given durations inclusive.

Parametersosid.calendaring.Durationfromstarting duration
osid.calendaring.Durationtoending duration
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyDuration
Description

Matches a docet that has any duration assigned.

Parametersbooleanmatch true to match docets with any duration, false to match docets with no duration
CompliancemandatoryThis method must be implemented.
MethodclearDurationTerms
Description

Clears the duration terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAssetId
Description

Sets the asset Id for this query.

Parametersosid.id.IdassetIdan asset Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT assetId is null
CompliancemandatoryThis method must be implemented.
MethodclearAssetIdTerms
Description

Clears the asset Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAssetQuery
Description

Tests if an AssetQuery is available.

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

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

Returnosid.repository.AssetQuerythe asset query
ErrorsUNIMPLEMENTED supportsAssetQuery() is false
ComplianceoptionalThis method must be implemented if supportsObjectiveQuery() is true.
MethodmatchAnyAsset
Description

Matches a docet that has any asset assigned.

Parametersbooleanmatch true to match docets with any asset, false to match docets with no asset
CompliancemandatoryThis method must be implemented.
MethodclearAssetTerms
Description

Clears the asset 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 the 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 an objective that has any assessment assigned.

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

Clears the assessment terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCourseCatalogId
Description

Sets the docet Id for this query to match syllabi assigned to course catalogs.

Parametersosid.id.IdcourseCatalogIda course catalog Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT courseCatalogId is null
CompliancemandatoryThis method must be implemented.
MethodclearCourseCatalogIdTerms
Description

Clears the course catalog Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCourseCatalogQuery
Description

Tests if an CourseCatalogQuery is available.

Returnboolean true if a course catalog query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCourseCatalogQuery
Description

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

Returnosid.course.CourseCatalogQuerythe course catalog query
ErrorsUNIMPLEMENTED supportsCourseCatalogQuery() is false
ComplianceoptionalThis method must be implemented if supportsCourseCatalogQuery() is true.
MethodclearCourseCatalogTerms
Description

Clears the course catalog terms.

CompliancemandatoryThis method must be implemented.
MethodgetDocetQueryRecord
Description

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

Parametersosid.type.TypedocetRecordTypea docet record type
Returnosid.course.syllabus.records.DocetQueryRecordthe docet query record
ErrorsNULL_ARGUMENT docetRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(docetRecordType) is false
CompliancemandatoryThis method must be implemented.