Interface RegistrationRequestItem
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, Subjugateable
A RegistrationRequestItem supports several operations:
- ADD: Registers the student into the designated
RegistrationTarget. - DROP: Ends the existing
Registration. - UPDATE: Swaps the existing
Registrationwith theRegistrationTargetand/or updates the credit and grading options.
-
Method Summary
Modifier and TypeMethodDescriptionGets the number of credits for which the student is registering.Gets the existing registration to be dropped or updated.Gets theIdof the existing registration to be dropped or updated.Gets the grading option.Gets the grading optionId.Gets the operation.Gets the registration request,Gets theIdof the registration request.getRegistrationRequestItemRecord(Type registrationRequestItemRecordType) Gets the registration request item record corresponding to the givenRegistrationRequestItem recordType.Gets the registration target.Gets theIdof the registration target.Gets the student resource for whom this applies.Gets theIdof the student resource for whom this applies.booleanTests if this request item specifies the number of credits to be taken.booleanTests if this request item specifies the grading option.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.
-
Method Details
-
getRegistrationRequestId
Id getRegistrationRequestId()Gets theIdof the registration request.- Returns:
- the registration request
Id - Compliance:
mandatory- This method must be implemented.
-
getRegistrationRequest
Gets the registration request,- Returns:
- the registration request
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getStudentId
Id getStudentId()Gets theIdof the student resource for whom this applies.- Returns:
- the resource
Id - Compliance:
mandatory- This method must be implemented.
-
getStudent
Gets the student resource for whom this applies.- Returns:
- the resource
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getRegistrationOperation
RegistrationOperation getRegistrationOperation()Gets the operation.- Returns:
- the operation
- Compliance:
mandatory- This method must be implemented.
-
getRegsistrationTargetId
Id getRegsistrationTargetId()Gets theIdof the registration target. A registration target must exist for valid ADD and UPDATE operations.- Returns:
- the registration target
Id - Throws:
IllegalStateException-getOperation()!=ADDandgetOperation()!=UPDATE- Compliance:
mandatory- This method must be implemented.
-
getRegistrationTarget
Gets the registration target. A registration target must exist for valid ADD and UPDATE operations.- Returns:
- the registration target
- Throws:
IllegalStateException-getOperation()!=ADDandgetOperation()!=UPDATEOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getExixtingRegsistrationId
Id getExixtingRegsistrationId()Gets theIdof the existing registration to be dropped or updated. An existing registration must exist for valid UPDATE and DROP operations.- Returns:
- the existing registration
Id - Throws:
IllegalStateException-getOperation()!=UPDATEandgetOperation()!=DROP- Compliance:
mandatory- This method must be implemented.
-
getExistingRegistration
Gets the existing registration to be dropped or updated. An existing registration must exist for valid UPDATE and DROP operations.- Returns:
- the existing registration
- Throws:
IllegalStateException-getOperation()!=UPDATEandgetOperation()!=DROPOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
specifiesCreditOption
boolean specifiesCreditOption()Tests if this request item specifies the number of credits to be taken. If no credit option range is specified in theRegistrationTarget, then this may be left unspecified.- Returns:
trueif this a credit option is specified,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCreditOption
BigDecimal getCreditOption()Gets the number of credits for which the student is registering.- Returns:
- the number of credits
- Throws:
IllegalStateException-specifiesCreditOption()isfalse- Compliance:
mandatory- This method must be implemented.
-
specifiesGradingOption
boolean specifiesGradingOption()Tests if this request item specifies the grading option. If theRegistrationTargetdoes not specify multiple grading options, then this may be left unspecified.- Returns:
trueif this a grading option is specified,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getGradingOptionId
Id getGradingOptionId()Gets the grading optionId.- Returns:
- the grading system
Id - Throws:
IllegalStateException-specifiesGradingOption()isfalse- Compliance:
mandatory- This method must be implemented.
-
getGradingOption
Gets the grading option.- Returns:
- the grade system option
- Throws:
IllegalStateException-specifiesGradingOption()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getRegistrationRequestItemRecord
RegistrationRequestItemRecord getRegistrationRequestItemRecord(Type registrationRequestItemRecordType) throws OperationFailedException Gets the registration request item record corresponding to the givenRegistrationRequestItem recordType. This method ie used to retrieve an object implementing the requested record. TheregistrationRequestItemRecordType may be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(registrationRequestItemRecordType) istrue.- Parameters:
registrationRequestItemRecordType- the type of registration request item record to retrieve- Returns:
- the registration request item record
- Throws:
NullArgumentException-registrationRequestItemRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(registrationRequestItemRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-