public interface ActivityBundleForm extends OsidObjectForm
This is the form for creating and updating ActivityBundles.
Like all OsidForm
objects, various data elements
may be set here for use in the create and update methods in the
ActivityBundleAdminSession.
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 |
clearCredits()
Removes the credits.
|
void |
clearGradingOptions()
Removes the grading options.
|
ActivityBundleFormRecord |
getActivityBundleFormRecord(Type activityBundleRecordType)
Gets the
ActivityBundleFormRecord corresponding to the
given activity bundle record Type. |
Metadata |
getCreditsMetadata()
Gets the metadata for credits.
|
Metadata |
getGradingOptionsMetadata()
Gets the metadata for a set of grading options.
|
void |
setCredits(java.math.BigDecimal[] credits)
Sets the activity bundle credits.
|
void |
setGradingOptions(Id[] gradeSystemIds)
Sets the grading options.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
Metadata getCreditsMetadata()
mandatory
- This method must be implemented. void setCredits(java.math.BigDecimal[] credits)
credits
- the new creditsInvalidArgumentException
- credits
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- credits
is
null
mandatory
- This method must be implemented. void clearCredits()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getGradingOptionsMetadata()
mandatory
- This method must be implemented. void setGradingOptions(Id[] gradeSystemIds)
gradeSystemIds
- the new grade systemsInvalidArgumentException
- gradeSystemIds
is invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- gradeSystemIds
is null
mandatory
- This method must be implemented. void clearGradingOptions()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. ActivityBundleFormRecord getActivityBundleFormRecord(Type activityBundleRecordType) throws OperationFailedException
ActivityBundleFormRecord
corresponding to the
given activity bundle record Type.
activityBundleRecordType
- an activity bundle record typeNullArgumentException
- activityBundleRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(activityBundleRecordType)
is
false
mandatory
- This method must be implemented.