public interface AssessmentTakenForm extends OsidObjectForm
This is the form for creating and updating an AssessmentTaken.
Like all OsidForm
objects, various data elements
may be set here for use in the create and update methods in the
AssessmentTakenAdminSession.
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 |
clearTaker()
Clears the resource.
|
AssessmentTakenFormRecord |
getAssessmentTakenFormRecord(Type assessmentTakenRecordType)
Gets the
AssessmentTakenFormRecord corresponding to the
given assessment taken record Type. |
Metadata |
getTakerMetadata()
Gets the metadata for a resource to manually set which resource will
be taking the assessment.
|
void |
setTaker(Id resourceId)
Sets the resource who will be taking this 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 getTakerMetadata()
mandatory
- This method must be implemented. void setTaker(Id resourceId)
resourceId
- the resource IdInvalidArgumentException
- resourceId
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearTaker()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. AssessmentTakenFormRecord getAssessmentTakenFormRecord(Type assessmentTakenRecordType) throws OperationFailedException
AssessmentTakenFormRecord
corresponding to the
given assessment taken record Type.
assessmentTakenRecordType
- the assessment taken record typeNullArgumentException
-
assessmentTakenRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(assessmentTakenRecordType)
is
false
mandatory
- This method must be implemented.