Interface CourseEntryForm
- All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidRelationshipForm, OsidTemporalForm, Suppliable
- All Known Subinterfaces:
CourseEntryBatchForm
This is the form for creating and updating courseEntries . Like
all OsidForm objects, various data elements may be set here for
use in the create and update methods in the
CourseEntryAdminSession . 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 complete flag.voidClears the course begin date.voidClears the course end date.voidClears the credit scale.voidClears the credits earned.voidClears the grade.voidClears the is registration known flag.voidClears the score.voidClears the score scale.voidClears the term.Gets the metadata for the completion flag.Gets the metadata for the course begin date.Gets the metadata for the course end date.getCourseEntryFormRecord(Type courseEntryRecordType) Gets theCourseEntryFormRecordcorresponding to the given course entry recordType.Gets the metadata for the credit scale.Gets the metadata for the credits earned.Gets the metadata for the grade.Gets the metadata for the is registration known flag.Gets the metadata for the score.Gets the metadata for the score scale.Gets the metadata for the term.voidsetComplete(boolean complete) Sets the program is complete flag.voidsetCourseBeginDate(DateTime courseBeginDate) Sets the course begin date.voidsetCourseEndDate(DateTime courseEndDate) Sets the course end date.voidsetCreditScale(Id gradeSystemId) Sets the credit scale.voidsetCreditsEarned(BigDecimal credits) Sets the credits earned.voidSets the grade.voidsetIsRegistrationKnown(boolean isRegistrationKnown) Sets the is registration known flag.voidsetScore(BigDecimal score) Sets the score.voidsetScoreScale(Id gradeSystemId) Sets the score scale.voidSets the term.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
-
getTermMetadata
Metadata getTermMetadata()Gets the metadata for the term.- Returns:
- metadata for the term
- Compliance:
mandatory- This method must be implemented.
-
setTerm
Sets the term.- Parameters:
termId- the new term- Throws:
InvalidArgumentException-termIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-termIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearTerm
void clearTerm()Clears the term.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getIsRegistrationKnownMetadata
Metadata getIsRegistrationKnownMetadata()Gets the metadata for the is registration known flag.- Returns:
- metadata for the is registration known flag
- Compliance:
mandatory- This method must be implemented.
-
setIsRegistrationKnown
void setIsRegistrationKnown(boolean isRegistrationKnown) Sets the is registration known flag.- Parameters:
isRegistrationKnown- the new is registration known flag- Throws:
InvalidArgumentException-isRegistrationKnownis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearIsRegistrationKnown
void clearIsRegistrationKnown()Clears the is registration known flag.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getCourseBeginDateMetadata
Metadata getCourseBeginDateMetadata()Gets the metadata for the course begin date.- Returns:
- metadata for the course begin date
- Compliance:
mandatory- This method must be implemented.
-
setCourseBeginDate
Sets the course begin date.- Parameters:
courseBeginDate- the new course begin date- Throws:
InvalidArgumentException-courseBeginDateis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-courseBeginDateisnull- Compliance:
mandatory- This method must be implemented.
-
clearCourseBeginDate
void clearCourseBeginDate()Clears the course begin date.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getCourseEndDateMetadata
Metadata getCourseEndDateMetadata()Gets the metadata for the course end date.- Returns:
- metadata for the course end date
- Compliance:
mandatory- This method must be implemented.
-
setCourseEndDate
Sets the course end date.- Parameters:
courseEndDate- the new course end date- Throws:
InvalidArgumentException-courseEndDateis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-courseEndDateisnull- Compliance:
mandatory- This method must be implemented.
-
clearCourseEndDate
void clearCourseEndDate()Clears the course end date.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getCompleteMetadata
Metadata getCompleteMetadata()Gets the metadata for the completion flag.- Returns:
- metadata for the complete flag
- Compliance:
mandatory- This method must be implemented.
-
setComplete
void setComplete(boolean complete) Sets the program is complete flag.- Parameters:
complete- the new complete flag- Throws:
InvalidArgumentException-completeis invalidNoAccessException-Metadata.isReadOnly()istrue- 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.
-
getCreditScaleMetadata
Metadata getCreditScaleMetadata()Gets the metadata for the credit scale.- Returns:
- metadata for the credit scale
- Compliance:
mandatory- This method must be implemented.
-
setCreditScale
Sets the credit scale.- Parameters:
gradeSystemId- the new grade system- Throws:
InvalidArgumentException-gradeSystemIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-gradeSystemIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearCreditScale
void clearCreditScale()Clears the credit scale.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getCreditsEarnedMetadata
Metadata getCreditsEarnedMetadata()Gets the metadata for the credits earned.- Returns:
- metadata for the credits earned
- Compliance:
mandatory- This method must be implemented.
-
setCreditsEarned
Sets the credits earned.- Parameters:
credits- the new credits- Throws:
InvalidArgumentException-creditsis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearCreditsEarned
void clearCreditsEarned()Clears the credits earned.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getGradeMetadata
Metadata getGradeMetadata()Gets the metadata for the grade.- Returns:
- metadata for the grade
- Compliance:
mandatory- This method must be implemented.
-
setGrade
Sets the grade.- Parameters:
gradeId- the new grade- Throws:
InvalidArgumentException-gradeIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-gradeIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearGrade
void clearGrade()Clears the grade.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getScoreScaleMetadata
Metadata getScoreScaleMetadata()Gets the metadata for the score scale.- Returns:
- metadata for the score scale
- Compliance:
mandatory- This method must be implemented.
-
setScoreScale
Sets the score scale.- Parameters:
gradeSystemId- the new grade system- Throws:
InvalidArgumentException-gradeSystemIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-gradeSystemIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearScoreScale
void clearScoreScale()Clears the score scale.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getScoreMetadata
Metadata getScoreMetadata()Gets the metadata for the score.- Returns:
- metadata for the score
- Compliance:
mandatory- This method must be implemented.
-
setScore
Sets the score.- Parameters:
score- the new score- Throws:
InvalidArgumentException-scoreis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearScore
void clearScore()Clears the score.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getCourseEntryFormRecord
CourseEntryFormRecord getCourseEntryFormRecord(Type courseEntryRecordType) throws OperationFailedException Gets theCourseEntryFormRecordcorresponding to the given course entry recordType.- Parameters:
courseEntryRecordType- a course entry record type- Returns:
- the course entry form record
- Throws:
NullArgumentException-courseEntryRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(courseEntryRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-