public interface RegistrationForm extends OsidRelationshipForm
This is the form for creating and updating Registrations.
Like all OsidForm
objects, various data elements
may be set here for use in the create and update methods in the
RegistrationAdminSession.
For each data element that may be set,
metadata may be examined to provide display hints or data constraints.
Modifier and Type | Method and Description |
---|---|
void |
clearCredits()
Removes the registration credits.
|
void |
clearGradingOption()
Removes the grading option.
|
Metadata |
getCreditsMetadata()
Gets the metadata for registration credits.
|
Metadata |
getGradingOptionMetadata()
Gets the metadata for the grading option.
|
RegistrationFormRecord |
getRegistrationFormRecord(Type registrationRecordType)
Gets the
RegistrationFormRecord corresponding to the
given registration record Type. |
void |
setCredits(java.math.BigDecimal[] credits)
Sets the registration credits.
|
void |
setGradingOptions(Id gradeSystemId)
Sets the grading option.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
clearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDate
Metadata getCreditsMetadata()
mandatory
- This method must be implemented. void setCredits(java.math.BigDecimal[] credits)
credits
- the new registration creditsInvalidArgumentException
- credits
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- credits
is
null
mandatory
- This method must be implemented. void clearCredits()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getGradingOptionMetadata()
mandatory
- This method must be implemented. void setGradingOptions(Id gradeSystemId)
gradeSystemId
- the new grading optionInvalidArgumentException
- gradeSystemId
is invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- gradeSystemId
is
null
mandatory
- This method must be implemented. void clearGradingOption()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. RegistrationFormRecord getRegistrationFormRecord(Type registrationRecordType) throws OperationFailedException
RegistrationFormRecord
corresponding to the
given registration record Type.
registrationRecordType
- a registration record typeNullArgumentException
- registrationRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(registrationRecordType)
is false
mandatory
- This method must be implemented.