OSID Logo
OSID Specifications
course registration package
Version 3.0.0
Interfaceosid.course.registration.CourseRegistrationAdminSession
Implementsosid.OsidSession
Implemented Byosid.course.registration.batch.CourseRegistrationBatchAdminSession
Used Byosid.course.registration.CourseRegistrationManager
osid.course.registration.CourseRegistrationProxyManager
Description

This session creates, updates, and deletes CourseRegistrat ions. The data for create and update is provided by the consumer via the form object. OsidForms are requested for each create or update and may not be reused.

Create and update operations differ in their usage. To create a CourseRegistra tion, a CourseRegistratio nForm is requested using getCourseRegistrationFormForCre ate() specifying the desired registration, course offering, resource, and record Types or none if no record Types are needed. The returned CourseRegistratio nForm will indicate that it is to be used with a create operation and can be used to examine metdata or validate data prior to creation. Once the CourseRegistratio nForm is submiited to a create operation, it cannot be reused with another create operation unless the first operation was unsuccessful. Each CourseRegistratio nForm corresponds to an attempted transaction.

For updates, CourseRegistration Forms are requested to the CourseRegistr ation Id that is to be updated using getCourseRegistrationFormForUpda te(). Similarly, the CourseRegistratio nForm has metadata about the data that can be updated and it can perform validation before submitting the update. The CourseRegistratio nForm can only be used once for a successful update and cannot be reused.

The delete operations delete CourseRegistrat ions. To unmap a CourseRegistr ation from the current CourseCatalog , the CourseRegistrationCourseCatalogAssignmentSe ssion should be used. These delete operations attempt to remove the CourseRegistr ation itself thus removing it from all known CourseCatalog catalogs.

This session includes an Id aliasing mechanism to assign an external Id to an internally assigned Id .

MethodgetCourseCatalogId
Description

Gets the CourseCatalog Id associated with this session.

Returnosid.id.Idthe CourseCatalog Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetCourseCatalog
Description

Gets the CourseCatalog associated with this session.

Returnosid.course.CourseCatalogthe course catalog
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanCreateCourseRegistrations
Description

Tests if this user can create CourseRegistrat ions. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating a CourseRegistr ation will result in a PERMISSION_DENIED. Th is is intended as a hint to an application that may opt not to offer create operations to an unauthorized user.

Returnbooleanfalse if CourseRegistration creation is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanCreateCourseRegistrationWithRecordTypes
Description

Tests if this user can create a single CourseRegistra tion using the desired record types. While CourseRegistrationManager.getCourseRegistrationRecordTypes() can be used to examine which records are supported, this method tests which record(s) are required for creating a specific CourseRegistra tion. Providing an empty array tests if a CourseRegistrat ion can be created with no records.

Parametersosid.type.Type[]courseRegistrationRecordTypesarray of course registration record types
Returnbooleantrue if CourseRegistration creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENTcourseRegistrationRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetCourseRegistrationFormForCreate
Description

Gets the course registration form for creating new course registrations. A new form should be requested for each create transaction.

Parametersosid.id.IdcourseOfferingIdthe Id for a CourseOffering
osid.id.IdresourceIdthe Id for a Resource
osid.type.Type[]courseRegistrationRecordTypesarray of course registration record types
Returnosid.course.registration.CourseRegistrationFormthe course registration form
ErrorsNOT_FOUNDcourseOfferingId or resourceId is not found
NULL_ARGUMENTcourseOfferingId, resourceId , or courseRegistrationRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateCourseRegistration
Description

Creates a new CourseRegistration .

Parametersosid.course.registration.CourseRegistrationFormcourseRegistrationFormthe form for this CourseRegistration
Returnosid.course.registration.CourseRegistrationthe new CourseRegistration
ErrorsILLEGAL_STATEcourseRegistrationForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENTcourseRegistrationForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDcourseRegistrationForm did not originate from getCourseRegistrationFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateCourseRegistrations
Description

Tests if this user can update CourseRegistrat ions. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating a CourseRegistr ation will result in a PERMISSION_DENIED. Th is is intended as a hint to an application that may opt not to offer update operations to an unauthorized user.

Returnbooleanfalse if CourseRegistration modification is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCourseRegistrationFormForUpdate
Description

Gets the course registration form for updating an existing course registration. A new course registration form should be requested for each update transaction.

Parametersosid.id.IdcourseRegistrationIdthe Id of the CourseRegistration
Returnosid.course.registration.CourseRegistrationFormthe course registration form
ErrorsNOT_FOUNDcourseRegistrationId is not found
NULL_ARGUMENTcourseRegistrationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateCourseRegistration
Description

Updates an existing course registration.

Parametersosid.course.registration.CourseRegistrationFormcourseRegistrationFormthe form containing the elements to be updated
ErrorsILLEGAL_STATEcourseRegistrationForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENTcourseRegistrationForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDcourseRegistrationForm did not originate from getCourseRegistrationFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeleteCourseRegistrations
Description

Tests if this user can delete CourseRegistrat ions. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting a CourseRegistr ation will result in a PERMISSION_DENIED. Th is is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.

Returnbooleanfalse if CourseRegistration deletion is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoddeleteCourseRegistration
Description

Deletes a CourseRegistration .

Parametersosid.id.IdcourseRegistrationIdthe Id of the CourseRegistration to remove
ErrorsNOT_FOUNDcourseRegistrationId not found
NULL_ARGUMENTcourseRegistrationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageCourseRegistrationAliases
Description

Tests if this user can manage Id aliases for CourseRegistra tions A return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in a PERMISSION_DENIED .This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.

Returnbooleanfalse if CourseRegistration aliasing is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaliasCourseRegistration
Description

Adds an Id to a CourseRegistr ation for the purpose of creating compatibility. The primary Id of the CourseRegistr ation is determined by the provider. The new Id performs as an alias to the primary Id . If the alias is a pointer to another course registration, it is reassigned to the given course registration Id .

Parametersosid.id.IdcourseRegistrationIdthe Id of a CourseRegistration
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTSaliasId is already assigned
NOT_FOUNDcourseRegistrationId not found
NULL_ARGUMENTcourseRegistrationId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.