OSID Logo
OSID Specifications
course registration package
Version 3.0.0
Release Candidate Preview
Interfaceosid.course.registration.ActivityBundleSearchSession
Implementsosid.course.registration.ActivityBundleQuerySession
Description

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

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

This session defines views that offer differing behaviors for searching.

  • federated course catalog view: searches include activity bundles 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 bundles in this course catalog

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

MethodgetActivityBundleSearch
Description

Gets an activity bundle search.

Returnosid.course.registration.ActivityBundleSearchthe activity bundle search
CompliancemandatoryThis method must be implemented.
MethodgetActivityBundleSearchOrder
Description

Gets an activity search order. The ActivityBundleSearchOrder is supplied to an ActivityBundleSearch to specify the ordering of results.

Returnosid.course.registration.ActivityBundleSearchOrderthe activity bundle search order
CompliancemandatoryThis method must be implemented.
MethodgetActivityBundlesBySearch
Description

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

Parametersosid.course.registration.ActivityBundleQueryactivityBundleQuerythe activity bundle query
osid.course.registration.ActivityBundleSearchactivityBundleSearchthe activity bundle search
Returnosid.course.registration.ActivityBundleSearchResultsthe returned search results
ErrorsNULL_ARGUMENT activityBundleQuery or activityBundleSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED activityBundleQuery or activityBundleSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetActivityBundleQueryFromInspector
Description

Gets an activity bundle query from an inspector. The inspector is available from an ActivityBundleSearchResults.

Parametersosid.assessment.ItemQueryInspectoractivityBundleQueryInspectora query inspector
Returnosid.course.registration.ActivityBundleQuerythe activity bundle query
ErrorsNULL_ARGUMENT activityBundleQueryInspector is null
UNSUPPORTED activityBundleQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.