OSID Logo
OSID Specifications
course syllabus package
Version 3.0.0
Interfaceosid.course.syllabus.DocetQuery
Implementsosid.OsidRelationshipQuery
Used Byosid.course.plan.LessonQuery
osid.course.syllabus.DocetQuerySession
osid.course.syllabus.DocetSearchSession
osid.course.syllabus.DocetSmartCourseCatalogSession
osid.course.syllabus.ModuleQuery
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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTmoduleId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsModuleQuery() 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTactivityUnitId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsActivityUnitQuery() 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTobjectiveId 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.

Returnbooleantrue if an objective 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
ErrorsUNIMPLEMENTEDsupportsLearningObjectiveQuery() is false
ComplianceoptionalThis method must be implemented if supportsLearningObjectiveQuery() is true .
MethodmatchAnyLearningObjective
Description

Matches a docet that has any objective assigned.

Parametersbooleanmatchtrue 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.

Parametersbooleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTassetId 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTfrom is greater than to
NULL_ARGUMENTfrom or to is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyDuration
Description

Matches a docet that has any duration assigned.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTassetId 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.

Returnbooleantrue if an objective 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
ErrorsUNIMPLEMENTEDsupportsAssetQuery() is false
ComplianceoptionalThis method must be implemented if supportsObjectiveQuery() is true .
MethodmatchAnyAsset
Description

Matches a docet that has any asset assigned.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTassessmentId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsAssessmentQuery() is false
ComplianceoptionalThis method must be implemented if supportsAssessmentQuery() is true .
MethodmatchAnyAssessment
Description

Matches an objective that has any assessment assigned.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTcourseCatalogId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsCourseCatalogQuery() 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_ARGUMENTdocetRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(docetRecordType) is false
CompliancemandatoryThis method must be implemented.