Interface CourseRequirementForm
- All Superinterfaces:
Extensible, Identifiable, OsidAggregateableForm, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidOperableForm, OsidRuleForm, Suppliable
This is the form for creating and updating CourseRequirements .
Like all OsidForm objects, various data elements may be set here
for use in the create and update methods in the
RequisiteAdminSession . For each data element that may be set, metadata
may be examined to provide display hints or data constraints.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves the courses.voidClears the credit scale.voidClears the include equivalent units flag.voidClears the minimum credits.voidClears the minimum earned credits.voidClears the minimum grade.voidClears the minimum non-transfer number of courses.voidClears the minimum number of courses.voidClears the minimum score.voidClears the minimum score system.voidClears the non-transfer credits.voidClears the requires completion flag.voidClears the requires subject area flag.voidClears the subject area.voidClears the target set credits.voidClears the target set number.voidClears the timeframe.getCourseRequirementFormRecord(Type courseRequirementRecordType) Gets theCourseRequirementFormRecordcorresponding to the given course requirement recordType.Gets the metadata for the courses.Gets the metadata for the credit scale.Gets the metadata for the include equivalent units flag.Gets the metadata for the minimum credits.Gets the metadata for the minimum earned creditsGets the metadata for the minimum grade.Gets the metadata for the minimum number of non-transfer courses.Gets the metadata for the minimum number of courses.Gets the metadata for the minimum score.Gets the metadata for the minimum score system.Gets the metadata for the minimum non-transfer credits.Gets the metadata for the requires completion flag.Gets the metadata for the requires subject area flag.Gets the metadata for the subject area.Gets the metadata for the target credits in the set.Gets the metadata for the target number of courses in the set.Gets the metadata for the timeframe.voidsetCourses(Id[] courseIds) Sets the courses.voidsetCreditScale(Id gradeSystemId) Sets the credit scale.voidsetIncludeEquivalentUnits(boolean includeEquivalentUnits) Sets the include equivalent units flag.voidsetMinimumCredits(BigDecimal credits) Sets the minimum credits.voidsetMinimumEarnedCredits(BigDecimal credits) Sets the minimum earned credits.voidsetMinimumGrade(Id gradeId) Sets the minimum grade.voidsetMinimumNonTransferNumber(long number) Sets the minimum number of non-transfer courses to complete from the set.voidsetMinimumNumber(long number) Sets the minimum number of courses to complete from the set.voidsetMinimumScore(BigDecimal score) Sets the minimum score.voidsetMinimumScoreSystem(Id gradeSystemId) Sets the minimum score system.voidsetNonTransferCredits(BigDecimal credits) Sets the minimum non-transfer credits.voidsetRequiresCompletion(boolean completion) Sets the requires completion flag.voidsetRequiresSubjectArea(boolean requiresSubjectArea) Sets the requires subject area flag.voidsetSubjectArea(Id subjectAreaId) Sets the subject area.voidsetTargetSetCredits(BigDecimal credits) Sets the target credits in the set.voidsetTargetSetNumber(long number) Sets the target number of courses in the set.voidsetTimeframe(Duration duration) Sets the timeframe.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 OsidOperableForm
clearDisabled, clearEnabled, getDisabledMetadata, getEnabledMetadata, setDisabled, setEnabledModifier and TypeMethodDescriptionvoidRemoves the administratively disabled flag.voidRemoves the administratively enabled flag.Gets the metadata for the disabled flag.Gets the metadata for the enabled flag.voidsetDisabled(boolean disabled) Sets the administratively disabled flag.voidsetEnabled(boolean enabled) Sets the administratively enabled flag.Methods inherited from interface OsidRuleForm
clearConditionRecordTypes, clearRule, getConditionRecordTypesMetadata, getRuleMetadata, setConditionRecordTypes, setRuleModifier and TypeMethodDescriptionvoidClears the condition record types.voidRemoves the rule.Gets the metadata for the condition record types.Gets the metadata for an associated rule.voidsetConditionRecordTypes(Type[] conditionRecordTypes) Sets the condition record types.voidSets a rule.
-
Method Details
-
getCoursesMetadata
Metadata getCoursesMetadata()Gets the metadata for the courses.- Returns:
- metadata for the courses
- Compliance:
mandatory- This method must be implemented.
-
setCourses
Sets the courses.- Parameters:
courseIds- the new courses- Throws:
InvalidArgumentException-courseIdsis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-courseIdsisnull- Compliance:
mandatory- This method must be implemented.
-
clearCourses
void clearCourses()Removes the courses.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getRequiresSubjectAreaMetadata
Metadata getRequiresSubjectAreaMetadata()Gets the metadata for the requires subject area flag.- Returns:
- metadata for the requires subject area flag
- Compliance:
mandatory- This method must be implemented.
-
setRequiresSubjectArea
void setRequiresSubjectArea(boolean requiresSubjectArea) Sets the requires subject area flag.- Parameters:
requiresSubjectArea- the new requires subject area flag- Throws:
InvalidArgumentException-requiresSubjectAreais invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearRequiresSubjectArea
void clearRequiresSubjectArea()Clears the requires subject area flag.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getSubjectAreaMetadata
Metadata getSubjectAreaMetadata()Gets the metadata for the subject area.- Returns:
- metadata for the subject area
- Compliance:
mandatory- This method must be implemented.
-
setSubjectArea
Sets the subject area.- Parameters:
subjectAreaId- the new subject area- Throws:
InvalidArgumentException-subjectAreaIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-subjectAreaIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearSubjectArea
void clearSubjectArea()Clears the subject area.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getIncludeEquivalentUnitsMetadata
Metadata getIncludeEquivalentUnitsMetadata()Gets the metadata for the include equivalent units flag.- Returns:
- metadata for the include equivalent units flag
- Compliance:
mandatory- This method must be implemented.
-
setIncludeEquivalentUnits
void setIncludeEquivalentUnits(boolean includeEquivalentUnits) Sets the include equivalent units flag.- Parameters:
includeEquivalentUnits- the new include equivalent units flag- Throws:
InvalidArgumentException-includeEquivalentUnitsis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearIncludeEquivalentUnits
void clearIncludeEquivalentUnits()Clears the include equivalent units flag.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getMinimumNumberMetadata
Metadata getMinimumNumberMetadata()Gets the metadata for the minimum number of courses.- Returns:
- metadata for the minimum number
- Compliance:
mandatory- This method must be implemented.
-
setMinimumNumber
void setMinimumNumber(long number) Sets the minimum number of courses to complete from the set.- Parameters:
number- the new minimum number- Throws:
InvalidArgumentException-numberis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearMinimumNumber
void clearMinimumNumber()Clears the minimum number of courses.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getMinimumNonTransferNumberMetadata
Metadata getMinimumNonTransferNumberMetadata()Gets the metadata for the minimum number of non-transfer courses.- Returns:
- metadata for the minimum non-transfer number
- Compliance:
mandatory- This method must be implemented.
-
setMinimumNonTransferNumber
void setMinimumNonTransferNumber(long number) Sets the minimum number of non-transfer courses to complete from the set.- Parameters:
number- the new minimum non-transfer number- Throws:
InvalidArgumentException-numberis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearMinimumNonTransferNumber
void clearMinimumNonTransferNumber()Clears the minimum non-transfer number of courses.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getTargetSetNumberMetadata
Metadata getTargetSetNumberMetadata()Gets the metadata for the target number of courses in the set.- Returns:
- metadata for the target set number
- Compliance:
mandatory- This method must be implemented.
-
setTargetSetNumber
void setTargetSetNumber(long number) Sets the target number of courses in the set.- Parameters:
number- the new target set number- Throws:
InvalidArgumentException-numberis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearTargetSetNumber
void clearTargetSetNumber()Clears the target set number.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getMinimumCreditsMetadata
Metadata getMinimumCreditsMetadata()Gets the metadata for the minimum credits.- Returns:
- metadata for the minimum credits
- Compliance:
mandatory- This method must be implemented.
-
setMinimumCredits
Sets the minimum credits.- Parameters:
credits- the new minimum credits- Throws:
InvalidArgumentException-creditsis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearMinimumCredits
void clearMinimumCredits()Clears the minimum credits.- 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 credit scale- 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.
-
getNonTransferCreditsMetadata
Metadata getNonTransferCreditsMetadata()Gets the metadata for the minimum non-transfer credits.- Returns:
- metadata for the non-transfer credits
- Compliance:
mandatory- This method must be implemented.
-
setNonTransferCredits
Sets the minimum non-transfer credits.- Parameters:
credits- the new minimum non-transfer credits- Throws:
InvalidArgumentException-creditsis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearNonTransferCredits
void clearNonTransferCredits()Clears the non-transfer credits.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getTargetSetCreditsMetadata
Metadata getTargetSetCreditsMetadata()Gets the metadata for the target credits in the set.- Returns:
- metadata for the target set credits
- Compliance:
mandatory- This method must be implemented.
-
setTargetSetCredits
Sets the target credits in the set.- Parameters:
credits- the new target set credits- Throws:
InvalidArgumentException-creditsis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearTargetSetCredits
void clearTargetSetCredits()Clears the target set credits.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getRequiresCompletionMetadata
Metadata getRequiresCompletionMetadata()Gets the metadata for the requires completion flag.- Returns:
- metadata for the requires completion flag
- Compliance:
mandatory- This method must be implemented.
-
setRequiresCompletion
void setRequiresCompletion(boolean completion) Sets the requires completion flag.- Parameters:
completion- the new requires completion flag- Throws:
InvalidArgumentException-completionis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearRequiresCompletion
void clearRequiresCompletion()Clears the requires completion flag.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getTimeframeMetadata
Metadata getTimeframeMetadata()Gets the metadata for the timeframe.- Returns:
- metadata for the timeframe
- Compliance:
mandatory- This method must be implemented.
-
setTimeframe
Sets the timeframe.- Parameters:
duration- the new duration- Throws:
InvalidArgumentException-durationis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-durationisnull- Compliance:
mandatory- This method must be implemented.
-
clearTimeframe
void clearTimeframe()Clears the timeframe.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getMinimumGradeMetadata
Metadata getMinimumGradeMetadata()Gets the metadata for the minimum grade.- Returns:
- metadata for the minimum grade
- Compliance:
mandatory- This method must be implemented.
-
setMinimumGrade
Sets the minimum grade.- Parameters:
gradeId- the new grade- Throws:
InvalidArgumentException-gradeIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-gradeIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearMinimumGrade
void clearMinimumGrade()Clears the minimum grade.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getMinimumScoreSystemMetadata
Metadata getMinimumScoreSystemMetadata()Gets the metadata for the minimum score system.- Returns:
- metadata for the minimum score system
- Compliance:
mandatory- This method must be implemented.
-
setMinimumScoreSystem
Sets the minimum score system.- Parameters:
gradeSystemId- the new grade system- Throws:
InvalidArgumentException-gradeSystemIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-gradeSystemIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearMinimumScoreSystem
void clearMinimumScoreSystem()Clears the minimum score system.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getMinimumScoreMetadata
Metadata getMinimumScoreMetadata()Gets the metadata for the minimum score.- Returns:
- metadata for the minimum score
- Compliance:
mandatory- This method must be implemented.
-
setMinimumScore
Sets the minimum score.- Parameters:
score- the new minimum score- Throws:
InvalidArgumentException-scoreis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearMinimumScore
void clearMinimumScore()Clears the minimum score.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getMinimumEarnedCreditsMetadata
Metadata getMinimumEarnedCreditsMetadata()Gets the metadata for the minimum earned credits- Returns:
- metadata for the minimum earned credits
- Compliance:
mandatory- This method must be implemented.
-
setMinimumEarnedCredits
Sets the minimum earned credits.- Parameters:
credits- the new minimum earned credits- Throws:
InvalidArgumentException-creditsis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearMinimumEarnedCredits
void clearMinimumEarnedCredits()Clears the minimum earned credits.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getCourseRequirementFormRecord
CourseRequirementFormRecord getCourseRequirementFormRecord(Type courseRequirementRecordType) throws OperationFailedException Gets theCourseRequirementFormRecordcorresponding to the given course requirement recordType.- Parameters:
courseRequirementRecordType- a course requirement record type- Returns:
- the course requirement form record
- Throws:
NullArgumentException-courseRequirementRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(courseRequirementRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-