OSID Logo
OSID Specifications
course registration request package
Version 3.1.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.Id the registration request Id
Compliancemandatory This method must be implemented.
MethodgetRegistrationRequest
Description

Gets the registration request,

Returnosid.course.registration.request.RegistrationRequest the registration request
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetStudentId
Description

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

Returnosid.id.Id the resource Id
Compliancemandatory This method must be implemented.
MethodgetStudent
Description

Gets the student resource for whom this applies.

Returnosid.resource.Resource the resource
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetRegistrationOperation
Description

Gets the operation.

Returnosid.course.registration.request.RegistrationOperation the operation
Compliancemandatory This 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.Id the registration target Id
ErrorsILLEGAL_STATE getOperation()!= ADD and getOperation()!= UPDATE
Compliancemandatory This method must be implemented.
MethodgetRegistrationTarget
Description

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

Returnosid.course.registration.RegistrationTarget the registration target
ErrorsILLEGAL_STATE getOperation()!= ADD and getOperation()!= UPDATE
OPERATION_FAILED unable to complete request
Compliancemandatory This 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.Id the existing registration Id
ErrorsILLEGAL_STATE getOperation()!= UPDATE and getOperation()!= DROP
Compliancemandatory This 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.Registration the existing registration
ErrorsILLEGAL_STATE getOperation()!= UPDATE and getOperation()!= DROP
OPERATION_FAILED unable to complete request
Compliancemandatory This 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.

Returnboolean true if this a credit option is specified, false otherwise
Compliancemandatory This method must be implemented.
MethodgetCreditOption
Description

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

Returndecimal the number of credits
ErrorsILLEGAL_STATE specifiesCreditOption() is false
Compliancemandatory This 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.

Returnboolean true if this a grading option is specified, false otherwise
Compliancemandatory This method must be implemented.
MethodgetGradingOptionId
Description

Gets the grading option Id.

Returnosid.id.Id the grading system Id
ErrorsILLEGAL_STATE specifiesGradingOption() is false
Compliancemandatory This method must be implemented.
MethodgetGradingOption
Description

Gets the grading option.

Returnosid.grading.GradeSystem the grade system option
ErrorsILLEGAL_STATE specifiesGradingOption() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This 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.TyperegistrationRequestItemRecordType the type of registration request item record to retrieve
Returnosid.course.registration.request.records.RegistrationRequestItemRecord the registration request item record
ErrorsNULL_ARGUMENT registrationRequestItemRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(registrationRequestItemRecordType) is false
Compliancemandatory This method must be implemented.