public interface CandidateForm extends OsidRelationshipForm
This is the form for creating and updating Candidates.
Like all OsidForm
objects, various data elements may be set
here for use in the create and update methods in the
CandidateAdminSession.
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 |
clearResource()
Clears the resource.
|
CandidateFormRecord |
getCandidateFormRecord(Type candidateRecordType)
Gets the
CandidateFormRecord corresponding to the given
Candidate record Type. |
Metadata |
getResourceMetadata()
Gets the metadata for the associated resource.
|
void |
setResource(Id resourceId)
Sets the resource.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
clearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDate
Metadata getResourceMetadata()
mandatory
- This method must be implemented. void setResource(Id resourceId)
resourceId
- the resource Id
InvalidArgumentException
- resourceId
is
invalidNullArgumentException
- resourceId
is
nullNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearResource()
mandatory
- This method must be implemented. CandidateFormRecord getCandidateFormRecord(Type candidateRecordType) throws OperationFailedException
CandidateFormRecord
corresponding to the given
Candidate
record Type.
candidateRecordType
- the candidate record typeNullArgumentException
- candidateRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(candidateRecordType)
is false
mandatory
- This method must be implemented.