Interface ProgramEntryForm
- All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidRelationshipForm, OsidTemporalForm, Suppliable
- All Known Subinterfaces:
ProgramEntryBatchForm
This is the form for creating and updating ProgramEntries .
Like all OsidForm objects, various data elements may be set here
for use in the create and update methods in the
ProgramEntryAdminSession . 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 admission date.voidClears the complete flag.voidClears the completion date.voidClears the completion term.voidClears the credit scale.voidClears the credits earned.voidClears the entrance date.voidClears the entrance term.voidClears the expected completion date.voidClears the expected completion term.voidclearGPA()Clears the gpa.voidClears the gpa scale.voidClears the has withdrawn flag.voidClears the is actively enrolled flag.voidClears the is enrolled flag.voidClears the is expected to complete flag.voidClears the is matriculation known flag.voidClears the is on leave flag.voidClears the level.voidClears the standing.voidClears the term.voidClears the withdraw date.voidClears the withdraw term.Gets the metadata for the admission date.Gets the metadta for the completionm flag.Gets the metadata for the completion date.Gets the metadata for the completion term.Gets the metadata for the credit scale.Gets the metadata for the credits earned.Gets the metadata for the entrance date.Gets the metadata for the entrance term.Gets the metadata for the expected completion date.Gets the metadata for the expected completion term.Gets the metadata for the gpa.Gets the metadata for the gpa scale.Gets the metadata for the has withdrawn flag.Gets the metadata for the is actively enrolled flag.Gets the metadata for the is enrolled flag.Gets the metadata for the is expected to complete flag.Gets the metadata for the is matriculation known flag.Gets the metadata for the is on leave flag.Gets the metadata for the level.getProgramEntryFormRecord(Type programEntryRecordType) Gets theProgramEntryFormRecordcorresponding to the given program entry recordType.Gets the metadata for the standing.Gets the metadata for the term.Gets the metadata for the withdraw date.Gets the metadata for the withdraw term.voidsetAdmissionDate(DateTime date) Sets the admission date.voidsetComplete(boolean complete) Sets the program is complete flag.voidsetCompletionDate(DateTime date) Sets the completion date.voidsetCompletionTerm(Id completionTermId) Sets the completion term.voidsetCreditScale(Id gradeSystemId) Sets the credit scale.voidsetCreditsEarned(BigDecimal credits) Sets the credits earned.voidsetEntranceDate(DateTime date) Sets the entrance date.voidsetEntranceTerm(Id entranceTermId) Sets the entrance term.voidSets the expected completion date.voidsetExpectedCompletionTerm(Id expectedCompletionTermId) Sets the expected completion term.voidsetGPA(BigDecimal gpa) Sets the gpa.voidsetGPAScale(Id gradeSystemId) Sets the gpa scale.voidsetHasWithdrawn(boolean hasWithdrawn) Sets the has withdrawn flag.voidsetIsActivelyEnrolled(boolean isActivelyEnrolled) Sets the is actively enrolled flag.voidsetIsEnrolled(boolean isEnrolled) Sets the is enrolled flag.voidsetIsExpectedToComplete(boolean isExpectedToComplete) Sets the is expected to complete flag.voidsetIsMatriculationKnown(boolean isMatriculationKnown) Sets the is matriculation known flag.voidsetIsOnLeave(boolean isOnLeave) Sets the is on leave flag.voidSets the level.voidsetStanding(Id standingId) Sets the standing.voidSets the term.voidsetWithdrawDate(DateTime date) Sets the withdraw date.voidsetWithdrawTerm(Id withdrawTermId) Sets the withdraw 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
-
getIsMatriculationKnownMetadata
Metadata getIsMatriculationKnownMetadata()Gets the metadata for the is matriculation known flag.- Returns:
- metadata for the is matriculation known flag
- Compliance:
mandatory- This method must be implemented.
-
setIsMatriculationKnown
void setIsMatriculationKnown(boolean isMatriculationKnown) Sets the is matriculation known flag.- Parameters:
isMatriculationKnown- the new is matriculation known flag- Throws:
InvalidArgumentException-isMatriculationKnownis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearIsMatriculationKnown
void clearIsMatriculationKnown()Clears the is matriculation known flag.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getEntranceDateMetadata
Metadata getEntranceDateMetadata()Gets the metadata for the entrance date.- Returns:
- metadata for the entrance date
- Compliance:
mandatory- This method must be implemented.
-
setEntranceDate
Sets the entrance date.- Parameters:
date- the new date- Throws:
InvalidArgumentException-dateis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-dateisnull- Compliance:
mandatory- This method must be implemented.
-
clearEntranceDate
void clearEntranceDate()Clears the entrance date.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getEntranceTermMetadata
Metadata getEntranceTermMetadata()Gets the metadata for the entrance term.- Returns:
- metadata for the entrance term
- Compliance:
mandatory- This method must be implemented.
-
setEntranceTerm
Sets the entrance term.- Parameters:
entranceTermId- the new entrance term- Throws:
InvalidArgumentException-entranceTermIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-entranceTermIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearEntranceTerm
void clearEntranceTerm()Clears the entrance term.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getIsExpectedToCompleteMetadata
Metadata getIsExpectedToCompleteMetadata()Gets the metadata for the is expected to complete flag.- Returns:
- metadata for the is expected to complete flag
- Compliance:
mandatory- This method must be implemented.
-
setIsExpectedToComplete
void setIsExpectedToComplete(boolean isExpectedToComplete) Sets the is expected to complete flag.- Parameters:
isExpectedToComplete- the new is expected to complete flag- Throws:
InvalidArgumentException-isExpectedToCompleteis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearIsExpectedToComplete
void clearIsExpectedToComplete()Clears the is expected to complete flag.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getExpectedCompletionDateMetadata
Metadata getExpectedCompletionDateMetadata()Gets the metadata for the expected completion date.- Returns:
- metadata for the expected completion date
- Compliance:
mandatory- This method must be implemented.
-
setExpectedCompletionDate
Sets the expected completion date.- Parameters:
date- the new date- Throws:
InvalidArgumentException-dateis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-dateisnull- Compliance:
mandatory- This method must be implemented.
-
clearExpectedCompletionDate
void clearExpectedCompletionDate()Clears the expected completion date.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getExpectedCompletionTermMetadata
Metadata getExpectedCompletionTermMetadata()Gets the metadata for the expected completion term.- Returns:
- metadata for the expected completion term
- Compliance:
mandatory- This method must be implemented.
-
setExpectedCompletionTerm
Sets the expected completion term.- Parameters:
expectedCompletionTermId- the new expected completion term- Throws:
InvalidArgumentException-expectedCompletionTermIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-expectedCompletionTermIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearExpectedCompletionTerm
void clearExpectedCompletionTerm()Clears the expected completion term.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getIsEnrolledMetadata
Metadata getIsEnrolledMetadata()Gets the metadata for the is enrolled flag.- Returns:
- metadata for the is enrolled flag
- Compliance:
mandatory- This method must be implemented.
-
setIsEnrolled
void setIsEnrolled(boolean isEnrolled) Sets the is enrolled flag.- Parameters:
isEnrolled- the new is enrolled flag- Throws:
InvalidArgumentException-isEnrolledis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearIsEnrolled
void clearIsEnrolled()Clears the is enrolled flag.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getIsActivelyEnrolledMetadata
Metadata getIsActivelyEnrolledMetadata()Gets the metadata for the is actively enrolled flag.- Returns:
- metadata for the is actively enrolled flag
- Compliance:
mandatory- This method must be implemented.
-
setIsActivelyEnrolled
void setIsActivelyEnrolled(boolean isActivelyEnrolled) Sets the is actively enrolled flag.- Parameters:
isActivelyEnrolled- the new is actively enrolled flag- Throws:
InvalidArgumentException-isActivelyEnrolledis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearIsActivelyEnrolled
void clearIsActivelyEnrolled()Clears the is actively enrolled flag.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getIsOnLeaveMetadata
Metadata getIsOnLeaveMetadata()Gets the metadata for the is on leave flag.- Returns:
- metadata for the is on leave flag
- Compliance:
mandatory- This method must be implemented.
-
setIsOnLeave
void setIsOnLeave(boolean isOnLeave) Sets the is on leave flag.- Parameters:
isOnLeave- the new is on leave flag- Throws:
InvalidArgumentException-isOnLeaveis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearIsOnLeave
void clearIsOnLeave()Clears the is on leave flag.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getHasWithdrawnMetadata
Metadata getHasWithdrawnMetadata()Gets the metadata for the has withdrawn flag.- Returns:
- metadata for the has withdrawn flag
- Compliance:
mandatory- This method must be implemented.
-
setHasWithdrawn
void setHasWithdrawn(boolean hasWithdrawn) Sets the has withdrawn flag.- Parameters:
hasWithdrawn- the new has withdrawn flag- Throws:
InvalidArgumentException-hasWithdrawnis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearHasWithdrawn
void clearHasWithdrawn()Clears the has withdrawn flag.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getWithdrawDateMetadata
Metadata getWithdrawDateMetadata()Gets the metadata for the withdraw date.- Returns:
- metadata for the withdraw date
- Compliance:
mandatory- This method must be implemented.
-
setWithdrawDate
Sets the withdraw date.- Parameters:
date- the new date- Throws:
InvalidArgumentException-dateis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-dateisnull- Compliance:
mandatory- This method must be implemented.
-
clearWithdrawDate
void clearWithdrawDate()Clears the withdraw date.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getWithdrawTermMetadata
Metadata getWithdrawTermMetadata()Gets the metadata for the withdraw term.- Returns:
- metadata for the withdraw term
- Compliance:
mandatory- This method must be implemented.
-
setWithdrawTerm
Sets the withdraw term.- Parameters:
withdrawTermId- the new withdraw term- Throws:
InvalidArgumentException-withdrawTermIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-withdrawTermIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearWithdrawTerm
void clearWithdrawTerm()Clears the withdraw term.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getCompleteMetadata
Metadata getCompleteMetadata()Gets the metadta for the completionm 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.
-
getCompletionDateMetadata
Metadata getCompletionDateMetadata()Gets the metadata for the completion date.- Returns:
- metadata for the completion date
- Compliance:
mandatory- This method must be implemented.
-
setCompletionDate
Sets the completion date.- Parameters:
date- the new date- Throws:
InvalidArgumentException-dateis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-dateisnull- Compliance:
mandatory- This method must be implemented.
-
clearCompletionDate
void clearCompletionDate()Clears the completion date.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getCompletionTermMetadata
Metadata getCompletionTermMetadata()Gets the metadata for the completion term.- Returns:
- metadata for the completion term
- Compliance:
mandatory- This method must be implemented.
-
setCompletionTerm
Sets the completion term.- Parameters:
completionTermId- the new completion term- Throws:
InvalidArgumentException-completionTermIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-completionTermIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearCompletionTerm
void clearCompletionTerm()Clears the completion term.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getLevelMetadata
Metadata getLevelMetadata()Gets the metadata for the level.- Returns:
- metadata for the level
- Compliance:
mandatory- This method must be implemented.
-
setLevel
Sets the level.- Parameters:
levelId- the new level- Throws:
InvalidArgumentException-levelIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-levelIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearLevel
void clearLevel()Clears the level.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getStandingMetadata
Metadata getStandingMetadata()Gets the metadata for the standing.- Returns:
- metadata for the standing
- Compliance:
mandatory- This method must be implemented.
-
setStanding
Sets the standing.- Parameters:
standingId- the new standing- Throws:
InvalidArgumentException-standingIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-standingIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearStanding
void clearStanding()Clears the standing.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getAdmissionDateMetadata
Metadata getAdmissionDateMetadata()Gets the metadata for the admission date.- Returns:
- metadata for the admission date
- Compliance:
mandatory- This method must be implemented.
-
setAdmissionDate
Sets the admission date.- Parameters:
date- the new date- Throws:
InvalidArgumentException-dateis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-dateisnull- Compliance:
mandatory- This method must be implemented.
-
clearAdmissionDate
void clearAdmissionDate()Clears the admission date.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
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.
-
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.
-
getGPAScaleMetadata
Metadata getGPAScaleMetadata()Gets the metadata for the gpa scale.- Returns:
- metadata for the gpa scale
- Compliance:
mandatory- This method must be implemented.
-
setGPAScale
Sets the gpa scale.- Parameters:
gradeSystemId- the new grade system- Throws:
InvalidArgumentException-gradeSystemIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-gradeSystemIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearGPAScale
void clearGPAScale()Clears the gpa scale.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getGPAMetadata
Metadata getGPAMetadata()Gets the metadata for the gpa.- Returns:
- metadata for the gpa
- Compliance:
mandatory- This method must be implemented.
-
setGPA
Sets the gpa.- Parameters:
gpa- the new gpa- Throws:
InvalidArgumentException-gpais invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearGPA
void clearGPA()Clears the gpa.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getProgramEntryFormRecord
ProgramEntryFormRecord getProgramEntryFormRecord(Type programEntryRecordType) throws OperationFailedException Gets theProgramEntryFormRecordcorresponding to the given program entry recordType.- Parameters:
programEntryRecordType- a program entry record type- Returns:
- the program entry form record
- Throws:
NullArgumentException-programEntryRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(programEntryRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-