public interface LogEntryForm extends OsidObjectForm
This is the form for creating and updating log entries.
Like all OsidForm objects, various data elements may be set
here for use in the create and update methods in the
LogEntryAdminSession. 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 |
clearPriority()
Removes the priority.
|
Metadata |
getAgentMetadata()
Gets the metadata for the agent.
|
LogEntryFormRecord |
getLogEntryFormRecord(Type logEntryRecordType)
Gets the
LogEntryFormRecord corresponding to the given
log entry record Type. |
Metadata |
getPriorityMetadata()
Gets the metadata for a priority type.
|
Metadata |
getTimestampMetadata()
Gets the metadata for a timestamp.
|
void |
setAgent(Id agentId)
Sets the agent.
|
void |
setPriority(Type priority)
Sets the priority.
|
void |
setTimestamp(DateTime timestamp)
Sets the timestamp.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypegetRequiredRecordTypesgetRecordTypes, hasRecordTypegetDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocalegetId, isCurrentMetadata getPriorityMetadata()
mandatory - This method must be implemented. void setPriority(Type priority)
priority - the new priorityInvalidArgumentException - priority is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - priority is
null mandatory - This method must be implemented. void clearPriority()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getTimestampMetadata()
mandatory - This method must be implemented. void setTimestamp(DateTime timestamp)
timestamp - the new timestampInvalidArgumentException - timestamp is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - timestamp is
null mandatory - This method must be implemented. Metadata getAgentMetadata()
mandatory - This method must be implemented. void setAgent(Id agentId)
agentId - the new agentInvalidArgumentException - agentId is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - agentId is
null mandatory - This method must be implemented. LogEntryFormRecord getLogEntryFormRecord(Type logEntryRecordType) throws OperationFailedException
LogEntryFormRecord corresponding to the given
log entry record Type. logEntryRecordType - the log entry record typeNullArgumentException - logEntryRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(logEntryRecordType) is false
mandatory - This method must be implemented.