Interface TodoForm
- All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidContainableForm, OsidExtensibleForm, OsidFederateableForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidTemporalForm, Suppliable
- All Known Subinterfaces:
TodoBatchForm
public interface TodoForm
extends OsidObjectForm, OsidContainableForm, OsidTemporalForm, OsidFederateableForm
This is the form for creating and updating Todos. Like all
OsidForm objects, various data elements may be set here for use in
the create and update methods in the TodoAdminSession. For each
data element that may be set, metadata may be examined to provide display
hints or data constraints.
Like all OsidForms, TodoForm is stateful and must not
be accessed by multiple processing threads.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the complete status.voidClears the dependencies.voidClears the due date.voidClears the priority.Gets the metadata for the completed status.Gets the metadata for the dependencies.Gets the metadata for the due date.Gets the metadata for the priority.getTodoFormRecord(Type todoRecordType) Gets theTodoFormRecordcorresponding to the given todo recordType.voidsetComplete(boolean complete) Sets the completed status.voidsetDependencies(Id[] todoIds) Sets the dependencies.voidsetDueDate(DateTime date) Sets the due date.voidsetPriority(Type priorityType) Sets the priority.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeMethods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidContainableForm
clearSequestered, getSequesteredMetadata, setSequesteredMethods inherited from interface OsidExtensibleForm
getRequiredRecordTypesMethods inherited from interface OsidForm
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocaleMethods inherited from interface OsidObjectForm
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypeMethods inherited from interface OsidTemporalForm
clearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDate
-
Method Details
-
getCompleteMetadata
Metadata getCompleteMetadata()Gets the metadata for the completed status.- Returns:
- metadata for the completed status
- Compliance:
mandatory- This method must be implemented.
-
setComplete
void setComplete(boolean complete) Sets the completed status.- Parameters:
complete- the new completed status- Throws:
InvalidArgumentException-completeis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearComplete
void clearComplete()Clears the complete status.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getPriorityMetadata
Metadata getPriorityMetadata()Gets the metadata for the priority.- Returns:
- metadata for the priority
- Compliance:
mandatory- This method must be implemented.
-
setPriority
Sets the priority.- Parameters:
priorityType- the new priority- Throws:
InvalidArgumentException-priorityTypeis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-priorityTypeisnull- Compliance:
mandatory- This method must be implemented.
-
clearPriority
void clearPriority()Clears the priority.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getDueDateMetadata
Metadata getDueDateMetadata()Gets the metadata for the due date.- Returns:
- metadata for the due date
- Compliance:
mandatory- This method must be implemented.
-
setDueDate
Sets the due date.- Parameters:
date- the new due date- Throws:
InvalidArgumentException-dateis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-dateisnull- Compliance:
mandatory- This method must be implemented.
-
clearDueDate
void clearDueDate()Clears the due date.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getDependenciesMetadata
Metadata getDependenciesMetadata()Gets the metadata for the dependencies.- Returns:
- metadata for the dependencies
- Compliance:
mandatory- This method must be implemented.
-
setDependencies
Sets the dependencies.- Parameters:
todoIds- the new dependencies- Throws:
InvalidArgumentException-todoIdsis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-todoIdsisnull- Compliance:
mandatory- This method must be implemented.
-
clearDependencies
void clearDependencies()Clears the dependencies.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getTodoFormRecord
Gets theTodoFormRecordcorresponding to the given todo recordType.- Parameters:
todoRecordType- the todo record type- Returns:
- the todo form record
- Throws:
NullArgumentException-todoRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(todoRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-