public interface ActivityForm extends OsidObjectForm, OsidFederateableForm, OsidTemporalForm
This is the form for creating and updating Activities.
Like all OsidForm objects, various data elements may be set
here for use in the create and update methods in the
ActivityAdminSession. 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 |
clearCode()
Removes the code.
|
void |
clearOrganization()
Removes the organization.
|
void |
clearSupervisor()
Removes the supervisor.
|
ActivityFormRecord |
getActivityFormRecord(Type activityRecordType)
Gets the
ActivityFormRecord corresponding to the given
activity record Type. |
Metadata |
getCodeMetadata()
Gets the metadata for the code flag.
|
Metadata |
getOrganizationMetadata()
Gets the metadata for the organization.
|
Metadata |
getSupervisorMetadata()
Gets the metadata for the supervisor.
|
void |
setCode(java.lang.String code)
Sets the code.
|
void |
setOrganization(Id organizationId)
Sets the organization.
|
void |
setSupervisor(Id supervisorId)
Sets the supervisor.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypegetRequiredRecordTypesgetRecordTypes, hasRecordTypegetDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocalegetId, isCurrentclearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDateMetadata getOrganizationMetadata()
mandatory - This method must be implemented. void setOrganization(Id organizationId)
organizationId - the new organizationInvalidArgumentException - organizationId
is invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - organizationId
is null mandatory - This method must be implemented. void clearOrganization()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getSupervisorMetadata()
mandatory - This method must be implemented. void setSupervisor(Id supervisorId)
supervisorId - the new supervisorInvalidArgumentException - supervisorId
is invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - supervisorId is
null mandatory - This method must be implemented. void clearSupervisor()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getCodeMetadata()
mandatory - This method must be implemented. void setCode(java.lang.String code)
code - the new codeInvalidArgumentException - code is
invalidNoAccessException - Metadata.isReadOnly()
is true mandatory - This method must be implemented. void clearCode()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. ActivityFormRecord getActivityFormRecord(Type activityRecordType) throws OperationFailedException
ActivityFormRecord corresponding to the given
activity record Type. activityRecordType - an activity record typeNullArgumentException - activityRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(activityRecordType) is false
mandatory - This method must be implemented.