public interface ActivityUnitForm extends OsidObjectForm, OsidOperableForm, OsidSubjugateableForm
This is the form for creating and updating ActivityUnits.
Like all OsidForm objects, various data elements
may be set here for use in the create and update methods in the
ActivityUnitAdminSession. 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 |
clearContact()
Removes the contact flag.
|
void |
clearLearningObjectives()
Removes the learning objectives.
|
void |
clearRecurringWeekly()
Removes the recurring weekly flag.
|
void |
clearTotalTargetContactTime()
Removes the total contact time.
|
void |
clearTotalTargetEffort()
Removes the total effort.
|
void |
clearTotalTargetIndividualEffort()
Removes the total individual effort.
|
void |
clearWeeklyContactTime()
Removes the weekly contact time.
|
void |
clearWeeklyEffort()
Removes the weekly effort.
|
void |
clearWeeklyIndividualEffort()
Removes the weekly individual effort.
|
ActivityUnitFormRecord |
getActivityUnitFormRecord(Type activityUnitRecordType)
Gets the
ActivityUnitFormRecord corresponding to the
given activity unit record Type. |
Metadata |
getContactMetadata()
Gets the metadata for the contact flag.
|
Metadata |
getLearningObjectiveMetadata()
Gets the metadata for a set of learning objectives.
|
Metadata |
getRecurringWeeklyMetadata()
Gets the metadata for the recurring weekly flag.
|
Metadata |
getTotalTargetContactTimeMetadata()
Gets the metadata for the total contact time.
|
Metadata |
getTotalTargetEffortMetadata()
Gets the metadata for the total effort.
|
Metadata |
getTotalTargetIndividualEffortMetadata()
Gets the metadata for the total individual effort.
|
Metadata |
getWeeklyContactTimeMetadata()
Gets the metadata for the weekly contact time.
|
Metadata |
getWeeklyEffortMetadata()
Gets the metadata for the weekly effort.
|
Metadata |
getWeeklyIndividualEffortMetadata()
Gets the metadata for the weekly individual effort.
|
void |
setContact(boolean contact)
Sets the contact flag.
|
void |
setLearningObjectives(Id[] objectiveIds)
Sets the learning objectives.
|
void |
setRecurringWeekly(boolean recurring)
Sets the recurring weekly flag.
|
void |
setTotalTargetContactTime(Duration time)
Sets the total contact time.
|
void |
setTotalTargetEffort(Duration time)
Sets the total effort.
|
void |
setTotalTargetIndividualEffort(Duration time)
Sets the total individual effort.
|
void |
setWeeklyContactTime(Duration time)
Sets the weekly contact time.
|
void |
setWeeklyEffort(Duration time)
Sets the weekly effort.
|
void |
setWeeklyIndividualEffort(Duration time)
Sets the weekly individual effort.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypegetRequiredRecordTypesgetRecordTypes, hasRecordTypegetDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocalegetId, isCurrentclearDisabled, clearEnabled, getDisabledMetadata, getEnabledMetadata, setDisabled, setEnabledMetadata getTotalTargetEffortMetadata()
mandatory - This method must be implemented. void setTotalTargetEffort(Duration time)
time - the new total effortInvalidArgumentException - time is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - time is
null mandatory - This method must be implemented. void clearTotalTargetEffort()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getContactMetadata()
mandatory - This method must be implemented. void setContact(boolean contact)
contact - the new contact flagInvalidArgumentException - contact is
invalidNoAccessException - Metadata.isReadOnly()
is true mandatory - This method must be implemented. void clearContact()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getTotalTargetContactTimeMetadata()
mandatory - This method must be implemented. void setTotalTargetContactTime(Duration time)
time - the new total contact timeInvalidArgumentException - time is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - time is
null mandatory - This method must be implemented. void clearTotalTargetContactTime()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getTotalTargetIndividualEffortMetadata()
mandatory - This method must be implemented. void setTotalTargetIndividualEffort(Duration time)
time - the new total individual effortInvalidArgumentException - time is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - time is
null mandatory - This method must be implemented. void clearTotalTargetIndividualEffort()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getRecurringWeeklyMetadata()
mandatory - This method must be implemented. void setRecurringWeekly(boolean recurring)
recurring - the new recurring weekly flagInvalidArgumentException - recurring is
invalidNoAccessException - Metadata.isReadOnly()
is true mandatory - This method must be implemented. void clearRecurringWeekly()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getWeeklyEffortMetadata()
mandatory - This method must be implemented. void setWeeklyEffort(Duration time)
time - the new weekly effortInvalidArgumentException - time is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - time is
null mandatory - This method must be implemented. void clearWeeklyEffort()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getWeeklyContactTimeMetadata()
mandatory - This method must be implemented. void setWeeklyContactTime(Duration time)
time - the new weekly contact timeInvalidArgumentException - time is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - time is
null mandatory - This method must be implemented. void clearWeeklyContactTime()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getWeeklyIndividualEffortMetadata()
mandatory - This method must be implemented. void setWeeklyIndividualEffort(Duration time)
time - the new weekly individual effortInvalidArgumentException - time is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - time is
null mandatory - This method must be implemented. void clearWeeklyIndividualEffort()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getLearningObjectiveMetadata()
mandatory - This method must be implemented. void setLearningObjectives(Id[] objectiveIds)
objectiveIds - the new obejctivesInvalidArgumentException - objectiveIds
is invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - objectiveIds is
null mandatory - This method must be implemented. void clearLearningObjectives()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. ActivityUnitFormRecord getActivityUnitFormRecord(Type activityUnitRecordType) throws OperationFailedException
ActivityUnitFormRecord corresponding to the
given activity unit record Type. activityUnitRecordType - an activity unit record typeNullArgumentException - activityUnitRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(activityUnitRecordType) is false
mandatory - This method must be implemented.