public interface LessonForm extends OsidRelationshipForm
This is the form for creating and updating Lessons.
Like
all OsidForm
objects, various data elements may be set here
for use in the create and update methods in the LessonAdminSession.
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 |
clearActivities()
Clears the activities.
|
void |
clearActualEndingActivity()
Clears the actual ending activity.
|
void |
clearActualEndTme()
Clears the actual end time.
|
void |
clearActualStartingActivity()
Clears the actual starting activity.
|
void |
clearActualStartTime()
Clears the actual start time.
|
void |
clearActualTimeSpent()
Clears the actual time spent.
|
void |
clearBegun()
Clears the begun flag.
|
void |
clearComplete()
Clears the complete flag.
|
void |
clearPlannedStartTime()
Clears the planned start time.
|
void |
clearSkipped()
Clears the skipped flag.
|
Metadata |
getActivitiesMetadata()
Gets the metadata for the activities.
|
Metadata |
getActualEndingActivityMetadata()
Gets the metadata for the actual ending activity.
|
Metadata |
getActualEndTimeMetadata()
Gets the metadata for the actual end time.
|
Metadata |
getActualStartingActivityMetadata()
Gets the metadata for the actual starting activity.
|
Metadata |
getActualStartTimeMetadata()
Gets the metadata for the actual start time.
|
Metadata |
getActualTimeSpentMetadata()
Gets the metadata for the actual time spent.
|
Metadata |
getBegunMetadata()
Gets the metadata for the begun flag.
|
Metadata |
getCompleteMetadata()
Gets the metadata for the complete flag.
|
LessonFormRecord |
getLessonFormRecord(Type lessonRecordType)
Gets the
LessonFormRecord corresponding to the given
lesson record Type. |
Metadata |
getPlannedStartTimeMetadata()
Gets the metadata for the planned start time.
|
Metadata |
getSkippedMetadata()
Gets the metadata for the skipped flag.
|
void |
setActivities(IdList activityIds)
Sets the activities.
|
void |
setActualEndingActivity(Id activityId)
Sets the actual ending activity.
|
void |
setActualEndTime(Duration time)
Sets the actual end time.
|
void |
setActualStartingActivity(Id activityId)
Sets the actual starting activity.
|
void |
setActualStartTime(Duration time)
Sets the actual start time.
|
void |
setActualTimeSpent(Duration duration)
Sets the actual time spent.
|
void |
setBegun(boolean begun)
Sets the begun flag.
|
void |
setComplete(boolean complete)
Sets the complete flag.
|
void |
setPlannedStartTime(Duration time)
Sets the planned start time.
|
void |
setSkipped(boolean skipped)
Sets the skipped flag.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
clearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDate
Metadata getActivitiesMetadata()
mandatory
- This method must be implemented. void setActivities(IdList activityIds)
activityIds
- the new activitiesInvalidArgumentException
- activityIds
is invalidNoAccessException
- activityIds
cannot
be modifiedNullArgumentException
- activityIds
is
null
mandatory
- This method must be implemented. void clearActivities()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getPlannedStartTimeMetadata()
mandatory
- This method must be implemented. void setPlannedStartTime(Duration time)
time
- the new planned start timeInvalidArgumentException
- time
is
invalidNoAccessException
- time
cannot be
modifiedNullArgumentException
- time
is
null
mandatory
- This method must be implemented. void clearPlannedStartTime()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getBegunMetadata()
mandatory
- This method must be implemented. void setBegun(boolean begun)
begun
- the new begun flagInvalidArgumentException
- begun
is
invalidNoAccessException
- begun
cannot be
modifiedmandatory
- This method must be implemented. void clearBegun()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getActualStartTimeMetadata()
mandatory
- This method must be implemented. void setActualStartTime(Duration time)
time
- the new actual start timeInvalidArgumentException
- time
is
invalidNoAccessException
- time
cannot be
modifiedNullArgumentException
- time
is
null
mandatory
- This method must be implemented. void clearActualStartTime()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getActualStartingActivityMetadata()
mandatory
- This method must be implemented. void setActualStartingActivity(Id activityId)
activityId
- the new actual starting activityInvalidArgumentException
- activityId
is
invalidNoAccessException
- activityId
cannot be
modifiedNullArgumentException
- activityId
is
null
mandatory
- This method must be implemented. void clearActualStartingActivity()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getCompleteMetadata()
mandatory
- This method must be implemented. void setComplete(boolean complete)
complete
- the new complete flagInvalidArgumentException
- complete
is
invalidNoAccessException
- complete
cannot be
modifiedmandatory
- This method must be implemented. void clearComplete()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getSkippedMetadata()
mandatory
- This method must be implemented. void setSkipped(boolean skipped)
skipped
- the new skipped flagInvalidArgumentException
- skipped
is
invalidNoAccessException
- skipped
cannot be
modifiedmandatory
- This method must be implemented. void clearSkipped()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getActualEndTimeMetadata()
mandatory
- This method must be implemented. void setActualEndTime(Duration time)
time
- the new actual end timeInvalidArgumentException
- time
is
invalidNoAccessException
- time
cannot be
modifiedNullArgumentException
- time
is
null
mandatory
- This method must be implemented. void clearActualEndTme()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getActualEndingActivityMetadata()
mandatory
- This method must be implemented. void setActualEndingActivity(Id activityId)
activityId
- the new actual ending activityInvalidArgumentException
- activityId
is
invalidNoAccessException
- activityId
cannot be
modifiedNullArgumentException
- activityId
is
null
mandatory
- This method must be implemented. void clearActualEndingActivity()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getActualTimeSpentMetadata()
mandatory
- This method must be implemented. void setActualTimeSpent(Duration duration)
duration
- the new durationInvalidArgumentException
- duration
is
invalidNoAccessException
- duration
cannot be
modifiedNullArgumentException
- duration
is
null
mandatory
- This method must be implemented. void clearActualTimeSpent()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. LessonFormRecord getLessonFormRecord(Type lessonRecordType) throws OperationFailedException
LessonFormRecord
corresponding to the given
lesson record Type.
lessonRecordType
- the lesson record typeNullArgumentException
- lessonRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(lessonRecordType)
is false
mandatory
- This method must be implemented.