OSID Logo
OSID Specifications
course package
Version 3.0.0
Release Candidate Preview
Interfaceosid.course.ActivityUnitSearchSession
Implementsosid.course.ActivityUnitQuerySession
Description

This session provides methods for searching among ActivityUnit objects. The search query is constructed using the ActivityUnitQuery.

getActivityUnitsByQuery() is the basic search method and returns a list of ActivityUnits. A more advanced search may be performed with getActivityUnitsBySearch(). It accepts an ActivityUnitSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getActivityUnitsBySearch() returns an ActivityUnitSearchResults that can be used to access the resulting ActivityUnitList or be used to perform a search within the result set through ActivityUnitSearch.

This session defines views that offer differing behaviors for searching.

  • federated course catalog view: searches include activity units in course catalogs of which this course catalog is an ancestor in the course catalog hierarchy
  • isolated course catalog view: searches are restricted to activity units in this course catalog

Activity Units may have a query record indicated by their respective record types. The query record is accessed via the ActivityUnitQuery.

MethodgetActivityUnitSearch
Description

Gets an activity unit search.

Returnosid.course.ActivityUnitSearchthe activity unit search
CompliancemandatoryThis method must be implemented.
MethodgetActivityUnitSearchOrder
Description

Gets an activity search order. The ActivityUnitSearchOrder is supplied to an ActivityUnitSearch to specify the ordering of results.

Returnosid.course.ActivityUnitSearchOrderthe activity unit search order
CompliancemandatoryThis method must be implemented.
MethodgetActivityUnitsBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.course.ActivityUnitQueryactivityUnitQuerythe activity unit query
osid.course.ActivityUnitSearchactivityUnitSearchthe activity unit search
Returnosid.course.ActivityUnitSearchResultsthe activity unit search results
ErrorsNULL_ARGUMENT activityUnitQuery or activityUnitSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED activityUnitQuery or activityUnitSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetActivityUnitQueryFromInspector
Description

Gets an activity unit query from an inspector. The inspector is available from an ActivityUnitSearchResults.

Parametersosid.assessment.ItemQueryInspectoractivityUnitQueryInspectoran activity unit query inspector
Returnosid.course.ActivityUnitQuerythe activity unit query
ErrorsNULL_ARGUMENT activityUnitQueryInspector is null
UNSUPPORTED activityUnitQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.