OSID Logo
OSID Specifications
course registration package
Version 3.0.0
Release Candidate Preview
Interfaceosid.course.registration.ActivityRegistrationSearchSession
Implementsosid.course.registration.ActivityRegistrationQuerySession
Description

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

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

This session defines views that offer differing behaviors for searching.

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

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

MethodgetActivityRegistrationSearch
Description

Gets an activity registration search.

Returnosid.course.registration.ActivityRegistrationSearchthe activity registration search
CompliancemandatoryThis method must be implemented.
MethodgetActivityRegistrationSearchOrder
Description

Gets an activity search order. The ActivityRegistrationSearchOrder is supplied to an ActivityRegistrationSearch to specify the ordering of results.

Returnosid.course.registration.ActivityRegistrationSearchOrderthe activity registration search order
CompliancemandatoryThis method must be implemented.
MethodgetActivityRegistrationsBySearch
Description

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

Parametersosid.course.registration.ActivityRegistrationQueryactivityRegistrationQuerythe activity registration query
osid.course.registration.ActivityRegistrationSearchactivityRegistrationSearchthe activity registration search
Returnosid.course.registration.ActivityRegistrationSearchResultsthe returned search results
ErrorsNULL_ARGUMENT activityRegistrationQuery or activityRegistrationSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED activityRegistrationQuery or activityRegistrationSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetActivityRegistrationQueryFromInspector
Description

Gets an activity registration query from an inspector. The inspector is available from an ActivityRegistrationSearchResults.

Parametersosid.assessment.ItemQueryInspectoractivityRegistrationQueryInspectoran activity registration query inspector
Returnosid.course.registration.ActivityRegistrationQuerythe activity registration query
ErrorsNULL_ARGUMENT activityRegistrationQueryInspector is null
UNSUPPORTED activityRegistrationQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.