public interface ObjectiveForm extends OsidObjectForm, OsidFederateableForm
This is the form for creating and updating Objectives.
Like all OsidForm
objects, various data elements may be set
here for use in the create and update methods in the
ObjectiveAdminSession.
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 |
clearAssessment()
Clears the assessment.
|
void |
clearCognitiveProcess()
Clears the cognitive process.
|
void |
clearKnowledgeCategory()
Clears the knowledge category.
|
Metadata |
getAssessmentMetadata()
Gets the metadata for an assessment.
|
Metadata |
getCognitiveProcessMetadata()
Gets the metadata for a cognitive process.
|
Metadata |
getKnowledgeCategoryMetadata()
Gets the metadata for a knowledge category.
|
ObjectiveFormRecord |
getObjectiveFormRecord(Type objectiveRecordType)
Gets the
ObjectiveFormRecord corresponding to the given
objective record Type. |
void |
setAssessment(Id assessmentId)
Sets the assessment.
|
void |
setCognitiveProcess(Id gradeId)
Sets the cognitive process.
|
void |
setKnowledgeCategory(Id gradeId)
Sets the knowledge category.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
Metadata getAssessmentMetadata()
mandatory
- This method must be implemented. void setAssessment(Id assessmentId)
assessmentId
- the new assessmentInvalidArgumentException
- assessmentId
is invalidNoAccessException
- assessmentId
cannot
be modifiedNullArgumentException
- assessmentId
is
null
mandatory
- This method must be implemented. void clearAssessment()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getKnowledgeCategoryMetadata()
mandatory
- This method must be implemented. void setKnowledgeCategory(Id gradeId)
gradeId
- the new knowledge categoryInvalidArgumentException
- gradeId
is
invalidNoAccessException
- gradeId
cannot be
modifiedNullArgumentException
- gradeId
is
null
mandatory
- This method must be implemented. void clearKnowledgeCategory()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getCognitiveProcessMetadata()
mandatory
- This method must be implemented. void setCognitiveProcess(Id gradeId)
gradeId
- the new cognitive processInvalidArgumentException
- gradeId
is
invalidNoAccessException
- gradeId
cannot be
modifiedNullArgumentException
- gradeId
is
null
mandatory
- This method must be implemented. void clearCognitiveProcess()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. ObjectiveFormRecord getObjectiveFormRecord(Type objectiveRecordType) throws OperationFailedException
ObjectiveFormRecord
corresponding to the given
objective record Type.
objectiveRecordType
- the objective record typeNullArgumentException
- objectiveRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(objectiveRecordType)
is false
mandatory
- This method must be implemented.