public interface EffortForm extends OsidRelationshipForm
This is the form for creating and updating Efforts. Like
all OsidForm objects, various data elements may be set here
for use in the create and update methods in the EffortAdminSession.
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 |
clearTimeSpent()
Removes the time spent.
|
EffortFormRecord |
getEffortFormRecord(Type effortRecordType)
Gets the
EffortFormRecord corresponding to the given
effort record Type. |
Metadata |
getTimeSpentMetadata()
Gets the metadata for the time spent.
|
void |
setTimeSpent(Duration timeSpent)
Sets the time spent.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypegetRequiredRecordTypesgetRecordTypes, hasRecordTypegetDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocalegetId, isCurrentclearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDateMetadata getTimeSpentMetadata()
mandatory - This method must be implemented. void setTimeSpent(Duration timeSpent)
timeSpent - the new time spentInvalidArgumentException - timeSpent is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - timeSpent is
null mandatory - This method must be implemented. void clearTimeSpent()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. EffortFormRecord getEffortFormRecord(Type effortRecordType) throws OperationFailedException
EffortFormRecord corresponding to the given
effort record Type. effortRecordType - an effort record typeNullArgumentException - effortRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(effortRecordType) is false
mandatory - This method must be implemented.