public interface AssessmentOfferedForm extends OsidObjectForm, OsidSubjugateableForm
This is the form for creating and updating an AssessmentOffered.
Like all OsidForm
objects, various data elements
may be set here for use in the create and update methods in the
AssessmentOfferedAdminSession.
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 |
clearDeadline()
Clears the deadline.
|
void |
clearDuration()
Clears the duration.
|
void |
clearGradeSystem()
Clears the grading system.
|
void |
clearItemsSequential()
Clears the items sequential flag.
|
void |
clearItemsShuffled()
Clears the shuffle flag.
|
void |
clearLevel()
Clears the level.
|
void |
clearScoreSystem()
Clears the score system.
|
void |
clearStartTime()
Clears the start time.
|
AssessmentOfferedFormRecord |
getAssessmentOfferedFormRecord(Type assessmentOfferedRecordType)
Gets the
AssessmentOfferedFormRecord corresponding to
the given assessment record Type. |
Metadata |
getDeadlineMetadata()
Gets the metadata for the assessment deadline.
|
Metadata |
getDurationMetadata()
Gets the metadata for the assessment duration
|
Metadata |
getGradeSystemMetadata()
Gets the metadata for a grading system.
|
Metadata |
getItemsSequentialMetadata()
Gets the metadata for sequential operation.
|
Metadata |
getItemsShuffledMetadata()
Gets the metadata for shuffling items.
|
Metadata |
getLevelMetadata()
Gets the metadata for a grade level.
|
Metadata |
getScoreSystemMetadata()
Gets the metadata for a score system.
|
Metadata |
getStartTimeMetadata()
Gets the metadata for the assessment start time.
|
void |
setDeadline(java.util.Date end)
Sets the assessment end time.
|
void |
setDuration(Duration duration)
Sets the assessment duration.
|
void |
setGradeSystem(Id gradeSystemId)
Sets the grading system.
|
void |
setItemsSequential(boolean sequential)
Sets the items sequential flag.
|
void |
setItemsShuffled(boolean shuffle)
Sets the shuffle flag.
|
void |
setLevel(Id gradeId)
Sets the level of difficulty expressed as a
Grade. |
void |
setScoreSystem(Id gradeSystemId)
Sets the scoring system.
|
void |
setStartTime(DateTime start)
Sets the assessment start time.
|
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
mandatory
- This method must be implemented. void clearLevel()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getItemsSequentialMetadata()
mandatory
- This method must be implemented. void setItemsSequential(boolean sequential)
sequential
- true
if the items are taken
sequentially, false
if the items can be skipped
and revisitedInvalidArgumentException
- sequential
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearItemsSequential()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getItemsShuffledMetadata()
mandatory
- This method must be implemented. void setItemsShuffled(boolean shuffle)
shuffle
- true
if the items are shuffled,
false
if the items appear in the designated orderInvalidArgumentException
- shuffle
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearItemsShuffled()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getStartTimeMetadata()
mandatory
- This method must be implemented. void setStartTime(DateTime start)
start
- assessment start timeInvalidArgumentException
- start
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearStartTime()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getDeadlineMetadata()
mandatory
- This method must be implemented. void setDeadline(java.util.Date end)
end
- assessment end timeInvalidArgumentException
- end
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearDeadline()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getDurationMetadata()
mandatory
- This method must be implemented. void setDuration(Duration duration)
duration
- assessment durationInvalidArgumentException
- duration
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearDuration()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getScoreSystemMetadata()
mandatory
- This method must be implemented. void setScoreSystem(Id gradeSystemId)
gradeSystemId
- the grade systemInvalidArgumentException
- gradeSystemId
is invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearScoreSystem()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getGradeSystemMetadata()
mandatory
- This method must be implemented. void setGradeSystem(Id gradeSystemId)
gradeSystemId
- the grade systemInvalidArgumentException
- gradeSystemId
is invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearGradeSystem()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. AssessmentOfferedFormRecord getAssessmentOfferedFormRecord(Type assessmentOfferedRecordType) throws OperationFailedException
AssessmentOfferedFormRecord
corresponding to
the given assessment record Type.
assessmentOfferedRecordType
- the assessment offered record typeNullArgumentException
-
assessmentOfferedRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(assessmentOfferedRecordType)
is
false
mandatory
- This method must be implemented.