OSID Logo
OSID Specifications
course registration request package
Version 3.0.0
Interfaceosid.course.registration.request.RegistrationRequestItem
Implementsosid.OsidObject
osid.Subjugateable
Used Byosid.course.registration.request.RegistrationRequestItemAdminSession
osid.course.registration.request.RegistrationRequestItemList
osid.course.registration.request.RegistrationRequestItemLookupSession
Description

A RegistrationRequestItem supports several operations:

  • ADD: Registers the student into the designated RegistrationTarget .
  • DROP: Ends the existing Registration .
  • UPDATE: Swaps the existing Registration with the RegistrationTarget and/or updates the credit and grading options.
MethodgetRegistrationRequestId
Description

Gets the Id of the registration request.

Returnosid.id.Idthe registration request Id
CompliancemandatoryThis method must be implemented.
MethodgetRegistrationRequest
Description

Gets the registration request,

Returnosid.course.registration.request.RegistrationRequestthe registration request
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetStudentId
Description

Gets the Id of the student resource for whom this applies.

Returnosid.id.Idthe resource Id
CompliancemandatoryThis method must be implemented.
MethodgetStudent
Description

Gets the student resource for whom this applies.

Returnosid.resource.Resourcethe resource
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetRegistrationOperation
Description

Gets the operation.

Returnosid.course.registration.request.RegistrationOperationthe operation
CompliancemandatoryThis method must be implemented.
MethodgetRegsistrationTargetId
Description

Gets the Id of the registration target. A registration target must exist for valid ADD and UPDATE operations.

Returnosid.id.Idthe registration target Id
ErrorsILLEGAL_STATEgetOperation() != ADD and getOperation() != UPDATE
CompliancemandatoryThis method must be implemented.
MethodgetRegistrationTarget
Description

Gets the registration target. A registration target must exist for valid ADD and UPDATE operations.

Returnosid.course.registration.RegistrationTargetthe registration target
ErrorsILLEGAL_STATEgetOperation() != ADD and getOperation() != UPDATE
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetExixtingRegsistrationId
Description

Gets the Id of the existing registration to be dropped or updated. An existing registration must exist for valid UPDATE and DROP operations.

Returnosid.id.Idthe existing registration Id
ErrorsILLEGAL_STATEgetOperation() != UPDATE and getOperation() != DROP
CompliancemandatoryThis method must be implemented.
MethodgetExistingRegistration
Description

Gets the existing registration to be dropped or updated. An existing registration must exist for valid UPDATE and DROP operations.

Returnosid.course.registration.Registrationthe existing registration
ErrorsILLEGAL_STATEgetOperation() != UPDATE and getOperation() != DROP
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodspecifiesCreditOption
Description

Tests if this request item specifies the number of credits to be taken. If no credit option range is specified in the RegistrationTarget , then this may be left unspecified.

Returnbooleantrue if this a credit option is specified, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCreditOption
Description

Gets the number of credits for which the student is registering.

Returndecimalthe number of credits
ErrorsILLEGAL_STATEspecifiesCreditOption() is false
CompliancemandatoryThis method must be implemented.
MethodspecifiesGradingOption
Description

Tests if this request item specifies the grading option. If the RegistrationTarget does not specify multiple grading options, then this may be left unspecified.

Returnbooleantrue if this a grading option is specified, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetGradingOptionId
Description

Gets the grading option Id .

Returnosid.id.Idthe grading system Id
ErrorsILLEGAL_STATEspecifiesGradingOption() is false
CompliancemandatoryThis method must be implemented.
MethodgetGradingOption
Description

Gets the grading option.

Returnosid.grading.GradeSystemthe grade system option
ErrorsILLEGAL_STATEspecifiesGradingOption() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetRegistrationRequestItemRecord
Description

Gets the registration request item record corresponding to the given RegistrationR equestItem record Type . This method ie used to retrieve an object implementing the requested record. The registrationRequestItem RecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(registrationRequestItemRe cordType) is true .

Parametersosid.type.TyperegistrationRequestItemRecordTypethe type of registration request item record to retrieve
Returnosid.course.registration.request.records.RegistrationRequestItemRecordthe registration request item record
ErrorsNULL_ARGUMENTregistrationRequestItemRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(registrationRequestItemRecordType) is false
CompliancemandatoryThis method must be implemented.