OSID Logo
OSID Specifications
learning package
Version 3.1.0
Interfaceosid.learning.ActivityQuery
Implementsosid.OsidObjectQuery
osid.OsidSubjugateableQuery
Used Byosid.learning.ActivityQuerySession
osid.learning.ActivitySearchSession
osid.learning.ActivitySmartObjectiveBankSession
osid.learning.ObjectiveBankQuery
osid.learning.ObjectiveQuery
Description

This is the query for searching activities. Each method match request produces an AND term while multiple invocations of a method produces a nested OR.

MethodmatchObjectiveId
Description

Sets the objective Id for this query.

Parametersosid.id.IdobjectiveId an objective Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT objectiveId is null
Compliancemandatory This method must be implemented.
MethodclearObjectiveIdTerms
Description

Clears the objective Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsObjectiveQuery
Description

Tests if an ObjectiveQuery is available for querying objectives.

Returnboolean true if an objective query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetObjectiveQuery
Description

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

Returnosid.learning.ObjectiveQuery the objective query
ErrorsUNIMPLEMENTED supportsObjectiveQuery() is false
Complianceoptional This method must be implemented if supportsObjectiveQuery() is true.
MethodclearObjectiveTerms
Description

Clears the objective terms.

Compliancemandatory This method must be implemented.
MethodmatchAssetId
Description

Sets the asset Id for this query.

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

Clears the asset Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAssetQuery
Description

Tests if an AssetQuery is available for querying objectives.

Returnboolean true if an asset query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAssetQuery
Description

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

Returnosid.repository.AssetQuery the asset query
ErrorsUNIMPLEMENTED supportsAssetQuery() is false
Complianceoptional This method must be implemented if supportsObjectiveQuery() is true.
MethodmatchAnyAsset
Description

Matches an activity that has any objective assigned.

Parametersbooleanmatch true to match activities with any asset, false to match activities with no asset
Compliancemandatory This method must be implemented.
MethodclearAssetTerms
Description

Clears the asset terms.

Compliancemandatory This method must be implemented.
MethodmatchCourseId
Description

Sets the course Id for this query.

Parametersosid.id.IdcourseId a course Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT courseId is null
Compliancemandatory This method must be implemented.
MethodclearCourseIdTerms
Description

Clears the course Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsCourseQuery
Description

Tests if a CourseQuery is available for querying courses.

Returnboolean true if a course query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetCourseQuery
Description

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

Returnosid.course.CourseQuery the course query
ErrorsUNIMPLEMENTED supportsCourseQuery() is false
Complianceoptional This method must be implemented if supportsCourseQuery() is true.
MethodmatchAnyCourse
Description

Matches an activity that has any course assigned.

Parametersbooleanmatch true to match activities with any courses, false to match activities with no courses
Compliancemandatory This method must be implemented.
MethodclearCourseTerms
Description

Clears the course terms.

Compliancemandatory This method must be implemented.
MethodmatchAssessmentId
Description

Sets the assessment Id for this query.

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

Clears the assessment Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAssessmentQuery
Description

Tests if an AssessmentQuery is available for querying assessments.

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

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

Returnosid.assessment.AssessmentQuery the assessment query
ErrorsUNIMPLEMENTED supportsAssessmentQuery() is false
Complianceoptional This method must be implemented if supportsAssessmentQuery() is true.
MethodmatchAnyAssessment
Description

Matches an activity that has any assessment assigned.

Parametersbooleanmatch true to match activities with any assessments, false to match activities with no assessments
Compliancemandatory This method must be implemented.
MethodclearAssessmentTerms
Description

Clears the assessment terms.

Compliancemandatory This method must be implemented.
MethodmatchObjectiveBankId
Description

Sets the objective bank Id for this query.

Parametersosid.id.IdobjectiveBankId an objective bank Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT objectiveBankId is null
Compliancemandatory This method must be implemented.
MethodclearObjectiveBankIdTerms
Description

Clears the objective bank Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsObjectiveBankQuery
Description

Tests if a ObjectiveBankQuery is available for querying resources.

Returnboolean true if an objective bank query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetObjectiveBankQuery
Description

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

Returnosid.learning.ObjectiveBankQuery the objective bank query
ErrorsUNIMPLEMENTED supportsObjectiveBankQuery() is false
Complianceoptional This method must be implemented if supportsObjectiveBankQuery() is true.
MethodclearObjectiveBankTerms
Description

Clears the objective bank terms.

Compliancemandatory This method must be implemented.
MethodgetActivityQueryRecord
Description

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

Parametersosid.type.TypeactivityRecordType an activity query record type
Returnosid.learning.records.ActivityQueryRecord the activity query record
ErrorsNULL_ARGUMENT activityRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(activityRecordType) is false
Compliancemandatory This method must be implemented.