public interface AssessmentRequirementForm extends OsidRuleForm, OsidAggregateableForm
This is the form for creating and updating
AssessmentRequirements.
Like all OsidForm
objects,
various data elements may be set here for use in the create and update
methods in the RequisiteAdminSession.
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 |
clearMinimumGrade()
Clears the minimum grade.
|
void |
clearMinimumScore()
Clears the minimum score.
|
void |
clearMinimumScoreSystem()
Clears the minimum score system.
|
void |
clearTimeframe()
Clears the timeframe.
|
AssessmentRequirementFormRecord |
getAssessmentlRequirementFormRecord(Type assessmentRequirementRecordType)
Gets the
AssessmentRequirementFormRecord corresponding
to the given assessmentl requirement record Type. |
Metadata |
getMinimumGradeMetadata()
Gets the metadata for the minimum grade.
|
Metadata |
getMinimumScoreMetadata()
Gets the metadata for the minimum score.
|
Metadata |
getMinimumScoreSystemMetadata()
Gets the metadata for the minimum score system.
|
Metadata |
getTimeframeMetadata()
Gets the metadata for the timeframe.
|
void |
setMinimumGrade(Id gradeId)
Sets the minimum grade.
|
void |
setMinimumScore(java.math.BigDecimal score)
Sets the minimum score.
|
void |
setMinimumScoreSystem(Id gradeSystemId)
Sets the minimum score system.
|
void |
setTimeframe(Duration duration)
Sets the timeframe.
|
clearRule, getRuleMetadata, setRule
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
clearDisabled, clearEnabled, getDisabledMetadata, getEnabledMetadata, setDisabled, setEnabled
Metadata getTimeframeMetadata()
mandatory
- This method must be implemented. void setTimeframe(Duration duration)
duration
- the new durationInvalidArgumentException
- duration
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- duration
is
null
mandatory
- This method must be implemented. void clearTimeframe()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getMinimumGradeMetadata()
mandatory
- This method must be implemented. void setMinimumGrade(Id gradeId)
gradeId
- the new gradeInvalidArgumentException
- gradeId
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- gradeId
is
null
mandatory
- This method must be implemented. void clearMinimumGrade()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getMinimumScoreSystemMetadata()
mandatory
- This method must be implemented. void setMinimumScoreSystem(Id gradeSystemId)
gradeSystemId
- the new grade systemInvalidArgumentException
- gradeSystemId
is invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- gradeSystemId
is
null
mandatory
- This method must be implemented. void clearMinimumScoreSystem()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getMinimumScoreMetadata()
mandatory
- This method must be implemented. void setMinimumScore(java.math.BigDecimal score)
score
- the new minimum scoreInvalidArgumentException
- score
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearMinimumScore()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. AssessmentRequirementFormRecord getAssessmentlRequirementFormRecord(Type assessmentRequirementRecordType) throws OperationFailedException
AssessmentRequirementFormRecord
corresponding
to the given assessmentl requirement record Type.
assessmentRequirementRecordType
- an assessment requirement
record typeNullArgumentException
-
assessmentRequirementRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(assessmentRequirementRecordType)
is
false
mandatory
- This method must be implemented.