Interface PositionForm
- All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidSubjugateableForm, OsidTemporalForm, Suppliable
- All Known Subinterfaces:
PositionBatchForm
This is the form for creating and updating Position objects.
Like all OsidForm objects, various data elements may be set here
for use in the create and update methods in the
PositionAdminSession . 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 benefits type.voidClears the compensation frequency.voidClears the exempt flag.voidClears the high salary.voidClears the level.voidClears the low salary.voidClears the midpoint salary.voidClears the qualifications.voidClears the required commitment.voidClears the target appointments.voidClears the title.Gets the metadata for a benefits type.Gets the metadata for a compensation frequency.Gets the metadata for the exempt flag.Gets the metadata for a high salary range.Gets the metadata for a level.Gets the metadata for a low salary range.Gets the metadata for a midpoint salary range.getPositionFormRecord(Type positionRecordType) Gets thePositionFormRecordinterface corresponding to the given position recordType.Gets the metadata for the qualifications.Gets the metadata for a required commitment.Gets the metadata for a target appointments.Gets the metadata for a title.voidsetBenefitsType(Type type) Sets the benefits type.voidsetCompensationFrequency(Duration frequency) Sets the compensation frequency.voidsetExempt(boolean exempt) Sets the exempt flag.voidsetHighSalaryRange(Currency salary) Sets the high salary range.voidSets the job level.voidsetLowSalaryRange(Currency salary) Sets the low salary range.voidsetMidpointSalaryRange(Currency salary) Sets the midpoint salary range.voidsetQualifications(Id[] objectivesIds) Sets the position qualifications.voidsetRequiredCommitment(long commitment) Sets the required commitment percentage (0-100).voidsetTargetAppointments(long appointments) Sets the target appointments.voidSets the title.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 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
-
getTitleMetadata
Metadata getTitleMetadata()Gets the metadata for a title.- Returns:
- metadata for the title
- Compliance:
mandatory- This method must be implemented.
-
setTitle
Sets the title.- Parameters:
title- the title- Throws:
InvalidArgumentException-titleis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-titleis null- Compliance:
mandatory- This method must be implemented.
-
clearTitle
void clearTitle()Clears the title.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getLevelMetadata
Metadata getLevelMetadata()Gets the metadata for a level.- Returns:
- metadata for the level
- Compliance:
mandatory- This method must be implemented.
-
setLevel
Sets the job level.- Parameters:
gradeId- the level- Throws:
InvalidArgumentException-gradeIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-gradeIdis null- 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.
-
getQualificationsMetadata
Metadata getQualificationsMetadata()Gets the metadata for the qualifications.- Returns:
- metadata for the qualifications
- Compliance:
mandatory- This method must be implemented.
-
setQualifications
Sets the position qualifications.- Parameters:
objectivesIds- the learning objectiveIds- Throws:
InvalidArgumentException-objectiveIdsis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-objectiveIdsis null- Compliance:
mandatory- This method must be implemented.
-
clearQualifications
void clearQualifications()Clears the qualifications.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getTargetAppointmentsMetadata
Metadata getTargetAppointmentsMetadata()Gets the metadata for a target appointments.- Returns:
- metadata for the target appointments
- Compliance:
mandatory- This method must be implemented.
-
setTargetAppointments
void setTargetAppointments(long appointments) Sets the target appointments.- Parameters:
appointments- the target appointments- Throws:
InvalidArgumentException-appointmentsis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearTargetAppointments
void clearTargetAppointments()Clears the target appointments.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getRequiredCommitmentMetadata
Metadata getRequiredCommitmentMetadata()Gets the metadata for a required commitment.- Returns:
- metadata for the required commitment
- Compliance:
mandatory- This method must be implemented.
-
setRequiredCommitment
void setRequiredCommitment(long commitment) Sets the required commitment percentage (0-100).- Parameters:
commitment- the required commitment- Throws:
InvalidArgumentException-commitmentis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearRequiredCommitment
void clearRequiredCommitment()Clears the required commitment.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getLowSalaryRangeMetadata
Metadata getLowSalaryRangeMetadata()Gets the metadata for a low salary range.- Returns:
- metadata for the low salary range
- Compliance:
mandatory- This method must be implemented.
-
setLowSalaryRange
Sets the low salary range.- Parameters:
salary- the low salary range- Throws:
InvalidArgumentException-salaryis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-salaryis null- Compliance:
mandatory- This method must be implemented.
-
clearLowSalaryRange
void clearLowSalaryRange()Clears the low salary.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getMidpointSalaryRangeMetadata
Metadata getMidpointSalaryRangeMetadata()Gets the metadata for a midpoint salary range.- Returns:
- metadata for the midpoint salary range
- Compliance:
mandatory- This method must be implemented.
-
setMidpointSalaryRange
Sets the midpoint salary range.- Parameters:
salary- the midpoint salary range- Throws:
InvalidArgumentException-salaryis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-salaryis null- Compliance:
mandatory- This method must be implemented.
-
clearMidpointSalaryRange
void clearMidpointSalaryRange()Clears the midpoint salary.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getHighSalaryRangeMetadata
Metadata getHighSalaryRangeMetadata()Gets the metadata for a high salary range.- Returns:
- metadata for the high salary range
- Compliance:
mandatory- This method must be implemented.
-
setHighSalaryRange
Sets the high salary range.- Parameters:
salary- the high salary range- Throws:
InvalidArgumentException-salaryis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-salaryis null- Compliance:
mandatory- This method must be implemented.
-
clearHighSalaryRange
void clearHighSalaryRange()Clears the high salary.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getCompensationFrequencyMetadata
Metadata getCompensationFrequencyMetadata()Gets the metadata for a compensation frequency.- Returns:
- metadata for the compensation frequency
- Compliance:
mandatory- This method must be implemented.
-
setCompensationFrequency
Sets the compensation frequency.- Parameters:
frequency- the compensation frequency- Throws:
InvalidArgumentException-frequencyis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-frequencyis null- Compliance:
mandatory- This method must be implemented.
-
clearCompensationFrequency
void clearCompensationFrequency()Clears the compensation frequency.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getExemptMetadata
Metadata getExemptMetadata()Gets the metadata for the exempt flag.- Returns:
- metadata for the exempt flag
- Compliance:
mandatory- This method must be implemented.
-
setExempt
void setExempt(boolean exempt) Sets the exempt flag.- Parameters:
exempt- the exempt flag- Throws:
InvalidArgumentException-exemptis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearExempt
void clearExempt()Clears the exempt flag.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getBenefitsTypeMetadata
Metadata getBenefitsTypeMetadata()Gets the metadata for a benefits type.- Returns:
- metadata for the benefits type
- Compliance:
mandatory- This method must be implemented.
-
setBenefitsType
Sets the benefits type.- Parameters:
type- the benefits type- Throws:
InvalidArgumentException-typeis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-typeis null- Compliance:
mandatory- This method must be implemented.
-
clearBenefitsType
void clearBenefitsType()Clears the benefits type.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getPositionFormRecord
Gets thePositionFormRecordinterface corresponding to the given position recordType.- Parameters:
positionRecordType- the position record type- Returns:
- the record
- Throws:
NullArgumentException-positionRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(positionRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-