public interface JobForm extends OsidGovernatorForm
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.
Modifier and Type | Method and Description |
---|---|
void |
clearCompetencies()
Removes the competencies.
|
Metadata |
getCompetenciesMetadata()
Gets the metadata for the competencies.
|
JobFormRecord |
getJobFormRecord(Type jobRecordType)
Gets the
JobFormRecord corresponding to the given job
record Type. |
void |
setCompetencies(IdList competencyIds)
Sets the competencies.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
clearDisabled, clearEnabled, getDisabledMetadata, getEnabledMetadata, setDisabled, setEnabled
clearBranding, clearLicense, clearProvider, getBrandingMetadata, getLicenseMetadata, getProviderMetadata, setBranding, setLicense, setProvider
Metadata getCompetenciesMetadata()
mandatory
- This method must be implemented. void setCompetencies(IdList competencyIds)
competencyIds
- the new competenciesInvalidArgumentException
- competencyIds
is invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- competencyId
is
null
mandatory
- This method must be implemented. void clearCompetencies()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. JobFormRecord getJobFormRecord(Type jobRecordType) throws OperationFailedException
JobFormRecord
corresponding to the given job
record Type.
jobRecordType
- a job record typeNullArgumentException
- jobRecordType
is
null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(jobRecordType)
is false
mandatory
- This method must be implemented.