Interface RegistrationRequestItemForm
- All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidSubjugateableForm, Suppliable
This is the form for creating and updating RegistrationRequ
estItems. Like all OsidForms , various data elements may be set
here for use in the create and update methods in the
RegistrationRequestItemAdmi nSession. For each data element that may be
set, metadata may be examined to provide display hints or data
constraints.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves the credit option.voidRemoves the existing registration.voidRemoves the grading option.voidRemoves the registration target.voidRemoves the student.Gets the metadata for the credit option.Gets the metadata for the existing registration.Gets the metadata for the grading option.getRegistrationRequestItemFormRecord(Type registrationRequestItemRecordType) Gets theRegistrationRequestItemFormRecordcorresponding to the given registration request item recordType.Gets the metadata for the registration target.Gets the metadata for the student.voidsetCreditOption(BigDecimal credits) Sets the credit option.voidsetExistingRegistration(Id registrationId) Sets the existing registration.voidsetGradingOption(Id gradeSystemId) Sets the grading option.voidsetRegistrationTarget(Id registrationTargetId) Sets the registration target.voidsetStudent(Id resourceId) Sets the student resource.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 OsidExtensibleForm
getRequiredRecordTypesModifier and TypeMethodDescriptionGets the minimum required record types for successful submission of thisOsidForm.Methods inherited from interface OsidForm
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocaleModifier and TypeMethodDescriptionGets a default locale for the form.Metadata[]Gets a list of metadata for the elements in this form which are not valid.Gets the metadata for the comment corresponding to this form submission.Gets the locales available for this form.Gets text messages corresponding to additional instructions to pass form validation.booleanTests if this form is for an update operation.booleanisValid()Tests if this form is in a valid state for submission.voidsetJournalComment(String comment) Sets a comment.voidSpecifies a language and script type for the form.Methods inherited from interface OsidObjectForm
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypeModifier and TypeMethodDescriptionvoidClears the description.voidClears the display name.voidClears the genus type.Gets the metadata for a description.Gets the metadata for a display name.Gets the metadata for a genus type.voidsetDescription(String description) Sets a description.voidsetDisplayName(String displayName) Sets a display name.voidsetGenusType(Type genusType) Sets a genus.
-
Method Details
-
getStudentMetadata
Metadata getStudentMetadata()Gets the metadata for the student.- Returns:
- metadata for the student
- Compliance:
mandatory- This method must be implemented.
-
setStudent
Sets the student resource.- Parameters:
resourceId- the new student- Throws:
InvalidArgumentException-resourceiIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-resourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearStudent
void clearStudent()Removes the student.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getRegistrationTargetMetadata
Metadata getRegistrationTargetMetadata()Gets the metadata for the registration target.- Returns:
- metadata for the registration target
- Compliance:
mandatory- This method must be implemented.
-
setRegistrationTarget
Sets the registration target.- Parameters:
registrationTargetId- the new student- Throws:
InvalidArgumentException-registrationTargetIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-registrationTargetIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearRegistrationTarget
void clearRegistrationTarget()Removes the registration target.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getExistingRegistrationMetadata
Metadata getExistingRegistrationMetadata()Gets the metadata for the existing registration.- Returns:
- metadata for the existing registration
- Compliance:
mandatory- This method must be implemented.
-
setExistingRegistration
Sets the existing registration.- Parameters:
registrationId- the new existing registration- Throws:
InvalidArgumentException-registrationIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-registrationIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearExistingRegistration
void clearExistingRegistration()Removes the existing registration.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getCreditOptionMetadata
Metadata getCreditOptionMetadata()Gets the metadata for the credit option.- Returns:
- metadata for the credit option
- Compliance:
mandatory- This method must be implemented.
-
setCreditOption
Sets the credit option.- Parameters:
credits- the new credit option- Throws:
InvalidArgumentException-creditsis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearCreditOption
void clearCreditOption()Removes the credit option.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getGradingOptionMetadata
Metadata getGradingOptionMetadata()Gets the metadata for the grading option.- Returns:
- metadata for the grading option
- Compliance:
mandatory- This method must be implemented.
-
setGradingOption
Sets the grading option.- Parameters:
gradeSystemId- the new grading option- Throws:
InvalidArgumentException-gradeSystemIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-gradeSystemIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearGradingOption
void clearGradingOption()Removes the grading option.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getRegistrationRequestItemFormRecord
RegistrationRequestItemFormRecord getRegistrationRequestItemFormRecord(Type registrationRequestItemRecordType) throws OperationFailedException Gets theRegistrationRequestItemFormRecordcorresponding to the given registration request item recordType.- Parameters:
registrationRequestItemRecordType- a registration request item record type- Returns:
- the registration request item form record
- Throws:
NullArgumentException-registrationRequestItemRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(registrationRequestItemRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-