Interface JobForm
- All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidGovernatorForm, OsidIdentifiableForm, OsidObjectForm, OsidOperableForm, OsidSourceableForm, Suppliable
- All Known Subinterfaces:
JobBatchForm
This is the form for creating and updating Jobs.Like all
OsidForm objects, various data elements may be set here for use in
the create and update methods in the JobAdminSession. For each
data element that may be set, metadata may be examined to provide display
hints or data constraints.
Like all OsidForms, JobForm is stateful and must not
be accessed by multiple processing threads.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves the competencies.voidRemoves the employers.Gets the metadata for the competencies.Gets the metadata for the employers.getJobFormRecord(Type jobRecordType) Gets theJobFormRecordcorresponding to the given job recordType.voidsetCompetencies(IdList competencyIds) Sets the competencies.voidsetEmployers(IdList employerIds) Sets the employers.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeMethods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidExtensibleForm
getRequiredRecordTypesMethods inherited from interface OsidForm
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocaleMethods inherited from interface OsidObjectForm
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypeMethods inherited from interface OsidOperableForm
clearDisabled, clearEnabled, getDisabledMetadata, getEnabledMetadata, setDisabled, setEnabledMethods inherited from interface OsidSourceableForm
clearBranding, clearLicense, clearProvider, getBrandingMetadata, getLicenseMetadata, getProviderMetadata, setBranding, setLicense, setProvider
-
Method Details
-
getEmployersMetadata
Metadata getEmployersMetadata()Gets the metadata for the employers.- Returns:
- metadata for the employers
- Compliance:
mandatory- This method must be implemented.
-
setEmployers
Sets the employers.- Parameters:
employerIds- the new employers- Throws:
InvalidArgumentException-employerIdsis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-employerIdsisnull- Compliance:
mandatory- This method must be implemented.
-
clearEmployers
void clearEmployers()Removes the employers.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getCompetenciesMetadata
Metadata getCompetenciesMetadata()Gets the metadata for the competencies.- Returns:
- metadata for the competency
- Compliance:
mandatory- This method must be implemented.
-
setCompetencies
Sets the competencies.- Parameters:
competencyIds- the new competencies- Throws:
InvalidArgumentException-competencyIdsis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-competencyIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearCompetencies
void clearCompetencies()Removes the competencies.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getJobFormRecord
Gets theJobFormRecordcorresponding to the given job recordType.- Parameters:
jobRecordType- a job record type- Returns:
- the job form record
- Throws:
NullArgumentException-jobRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(jobRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-