Interface LessonForm
- All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidRelationshipForm, OsidTemporalForm, Suppliable
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.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the activities.voidClears the actual ending activity.voidClears the actual end time.voidClears the actual starting activity.voidClears the actual start time.voidClears the actual time spent.voidClears the begun flag.voidClears the complete flag.voidClears the planned start time.voidClears the skipped flag.Gets the metadata for the activities.Gets the metadata for the actual ending activity.Gets the metadata for the actual end time.Gets the metadata for the actual starting activity.Gets the metadata for the actual start time.Gets the metadata for the actual time spent.Gets the metadata for the begun flag.Gets the metadata for the complete flag.getLessonFormRecord(Type lessonRecordType) Gets theLessonFormRecordcorresponding to the given lesson recordType.Gets the metadata for the planned start time.Gets the metadata for the skipped flag.voidsetActivities(IdList activityIds) Sets the activities.voidsetActualEndingActivity(Id activityId) Sets the actual ending activity.voidsetActualEndTime(Duration time) Sets the actual end time.voidsetActualStartingActivity(Id activityId) Sets the actual starting activity.voidsetActualStartTime(Duration time) Sets the actual start time.voidsetActualTimeSpent(Duration duration) Sets the actual time spent.voidsetBegun(boolean begun) Sets the begun flag.voidsetComplete(boolean complete) Sets the complete flag.voidsetPlannedStartTime(Duration time) Sets the planned start time.voidsetSkipped(boolean skipped) Sets the skipped flag.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidExtensibleForm
getRequiredRecordTypesModifier and TypeMethodDescriptionGets the minimum required record types for successful submission of thisOsidForm.Methods inherited from interface OsidForm
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocaleModifier and TypeMethodDescriptionGets a default locale for the form.Metadata[]Gets a list of metadata for the elements in this form which are not valid.Gets the metadata for the comment corresponding to this form submission.Gets the locales available for this form.Gets text messages corresponding to additional instructions to pass form validation.booleanTests if this form is for an update operation.booleanisValid()Tests if this form is in a valid state for submission.voidsetJournalComment(String comment) Sets a comment.voidSpecifies a language and script type for the form.Methods inherited from interface OsidObjectForm
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypeModifier and TypeMethodDescriptionvoidClears the description.voidClears the display name.voidClears the genus type.Gets the metadata for a description.Gets the metadata for a display name.Gets the metadata for a genus type.voidsetDescription(String description) Sets a description.voidsetDisplayName(String displayName) Sets a display name.voidsetGenusType(Type genusType) Sets a genus.Methods inherited from interface OsidRelationshipForm
clearEndReason, getEndReasonMetadata, setEndReasonModifier and TypeMethodDescriptionvoidRemoves the end reason.Gets the metadata for the end reason.voidsetEndReason(Id stateId) Sets the end reason.Methods inherited from interface OsidTemporalForm
clearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDateModifier and TypeMethodDescriptionvoidClears the end date.voidClears the start date.Gets the metadata for an end date.Gets the metadata for a start date.voidsetEndDate(DateTime date) Sets the end date.voidsetStartDate(DateTime date) Sets the start date.
-
Method Details
-
getActivitiesMetadata
Metadata getActivitiesMetadata()Gets the metadata for the activities.- Returns:
- metadata for the activities
- Compliance:
mandatory- This method must be implemented.
-
setActivities
Sets the activities.- Parameters:
activityIds- the new activities- Throws:
InvalidArgumentException-activityIdsis invalidNoAccessException-activityIdscannot be modifiedNullArgumentException-activityIdsisnull- Compliance:
mandatory- This method must be implemented.
-
clearActivities
void clearActivities()Clears the activities.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getPlannedStartTimeMetadata
Metadata getPlannedStartTimeMetadata()Gets the metadata for the planned start time.- Returns:
- metadata for the planned start time
- Compliance:
mandatory- This method must be implemented.
-
setPlannedStartTime
Sets the planned start time. The time is expressed as a time relative to the starting time of the first activity.- Parameters:
time- the new planned start time- Throws:
InvalidArgumentException-timeis invalidNoAccessException-timecannot be modifiedNullArgumentException-timeisnull- Compliance:
mandatory- This method must be implemented.
-
clearPlannedStartTime
void clearPlannedStartTime()Clears the planned start time.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getBegunMetadata
Metadata getBegunMetadata()Gets the metadata for the begun flag.- Returns:
- metadata for the begun flag
- Compliance:
mandatory- This method must be implemented.
-
setBegun
void setBegun(boolean begun) Sets the begun flag.- Parameters:
begun- the new begun flag- Throws:
InvalidArgumentException-begunis invalidNoAccessException-beguncannot be modified- Compliance:
mandatory- This method must be implemented.
-
clearBegun
void clearBegun()Clears the begun flag.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getActualStartTimeMetadata
Metadata getActualStartTimeMetadata()Gets the metadata for the actual start time. The time is expressed as a time relative to the starting time of the actual starting activity.- Returns:
- metadata for the actual start time
- Compliance:
mandatory- This method must be implemented.
-
setActualStartTime
Sets the actual start time.- Parameters:
time- the new actual start time- Throws:
InvalidArgumentException-timeis invalidNoAccessException-timecannot be modifiedNullArgumentException-timeisnull- Compliance:
mandatory- This method must be implemented.
-
clearActualStartTime
void clearActualStartTime()Clears the actual start time.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getActualStartingActivityMetadata
Metadata getActualStartingActivityMetadata()Gets the metadata for the actual starting activity.- Returns:
- metadata for the actual starting activity
- Compliance:
mandatory- This method must be implemented.
-
setActualStartingActivity
Sets the actual starting activity.- Parameters:
activityId- the new actual starting activity- Throws:
InvalidArgumentException-activityIdis invalidNoAccessException-activityIdcannot be modifiedNullArgumentException-activityIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearActualStartingActivity
void clearActualStartingActivity()Clears the actual starting activity.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getCompleteMetadata
Metadata getCompleteMetadata()Gets the metadata for the complete flag.- Returns:
- metadata for the complete flag
- Compliance:
mandatory- This method must be implemented.
-
setComplete
void setComplete(boolean complete) Sets the complete flag.- Parameters:
complete- the new complete flag- Throws:
InvalidArgumentException-completeis invalidNoAccessException-completecannot be modified- Compliance:
mandatory- This method must be implemented.
-
clearComplete
void clearComplete()Clears the complete flag.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getSkippedMetadata
Metadata getSkippedMetadata()Gets the metadata for the skipped flag.- Returns:
- metadata for the skipped flag
- Compliance:
mandatory- This method must be implemented.
-
setSkipped
void setSkipped(boolean skipped) Sets the skipped flag.- Parameters:
skipped- the new skipped flag- Throws:
InvalidArgumentException-skippedis invalidNoAccessException-skippedcannot be modified- Compliance:
mandatory- This method must be implemented.
-
clearSkipped
void clearSkipped()Clears the skipped flag.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getActualEndTimeMetadata
Metadata getActualEndTimeMetadata()Gets the metadata for the actual end time.- Returns:
- metadata for the actual end time
- Compliance:
mandatory- This method must be implemented.
-
setActualEndTime
Sets the actual end time. The time is expressed as a time relative to the starting time of the ending activity.- Parameters:
time- the new actual end time- Throws:
InvalidArgumentException-timeis invalidNoAccessException-timecannot be modifiedNullArgumentException-timeisnull- Compliance:
mandatory- This method must be implemented.
-
clearActualEndTme
void clearActualEndTme()Clears the actual end time.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getActualEndingActivityMetadata
Metadata getActualEndingActivityMetadata()Gets the metadata for the actual ending activity.- Returns:
- metadata for the actual ending activity
- Compliance:
mandatory- This method must be implemented.
-
setActualEndingActivity
Sets the actual ending activity.- Parameters:
activityId- the new actual ending activity- Throws:
InvalidArgumentException-activityIdis invalidNoAccessException-activityIdcannot be modifiedNullArgumentException-activityIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearActualEndingActivity
void clearActualEndingActivity()Clears the actual ending activity.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getActualTimeSpentMetadata
Metadata getActualTimeSpentMetadata()Gets the metadata for the actual time spent.- Returns:
- metadata for the actual time spent
- Compliance:
mandatory- This method must be implemented.
-
setActualTimeSpent
Sets the actual time spent.- Parameters:
duration- the new duration- Throws:
InvalidArgumentException-durationis invalidNoAccessException-durationcannot be modifiedNullArgumentException-durationisnull- Compliance:
mandatory- This method must be implemented.
-
clearActualTimeSpent
void clearActualTimeSpent()Clears the actual time spent.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getLessonFormRecord
Gets theLessonFormRecordcorresponding to the given lesson recordType.- Parameters:
lessonRecordType- the lesson record type- Returns:
- the lesson form record
- Throws:
NullArgumentException-lessonRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(lessonRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-