public interface AssessmentForm extends OsidObjectForm
This is the form for creating and updating Assessments.
Like all OsidForm
objects, various data elements may be set
here for use in the create and update methods in the
AssessmentAdminSession.
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 |
clearLevel()
Clears the grade level.
|
void |
clearRubric()
Clears the rubric.
|
AssessmentFormRecord |
getAssessmentFormRecord(Type assessmentRecordType)
Gets the
AssessmentFormRecord corresponding to the
given assessment record Type. |
Metadata |
getLevelMetadata()
Gets the metadata for a grade level.
|
Metadata |
getRubricMetadata()
Gets the metadata for a rubric assessment.
|
void |
setLevel(Id gradeId)
Sets the level of difficulty expressed as a
Grade. |
void |
setRubric(Id assessmentId)
Sets the rubric expressed as another assessment.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
Metadata getLevelMetadata()
mandatory
- This method must be implemented. void setLevel(Id gradeId)
Grade.
gradeId
- the grade levelInvalidArgumentException
- gradeId
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- gradeId
is
null
mandatory
- This method must be implemented. void clearLevel()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getRubricMetadata()
mandatory
- This method must be implemented. void setRubric(Id assessmentId)
assessmentId
- the assessment Id
InvalidArgumentException
- assessmentId
is invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- assessmentId
is
null
mandatory
- This method must be implemented. void clearRubric()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. AssessmentFormRecord getAssessmentFormRecord(Type assessmentRecordType) throws OperationFailedException
AssessmentFormRecord
corresponding to the
given assessment record Type.
assessmentRecordType
- the assessment record typeNullArgumentException
- assessmentRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(assessmentRecordType)
is false
mandatory
- This method must be implemented.