public interface BallotForm extends OsidGovernatorForm, OsidTemporalForm
This is the form for creating and updating Ballots.
Like
all OsidForm
objects, various data elements may be set here
for use in the create and update methods in the BallotAdminSession.
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 |
clearRevote()
Clears the revote flag.
|
BallotFormRecord |
getBallotFormRecord(Type candidateRecordType)
Gets the
BallotFormRecord corresponding to the given
Ballot record Type. |
Metadata |
getRevoteMetadata()
Gets the metadata for the revote flag.
|
void |
setRevote(boolean revote)
Sets the revote flag.
|
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
clearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDate
Metadata getRevoteMetadata()
mandatory
- This method must be implemented. void setRevote(boolean revote)
revote
- the revote flagInvalidArgumentException
- revote
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearRevote()
mandatory
- This method must be implemented. BallotFormRecord getBallotFormRecord(Type candidateRecordType) throws OperationFailedException
BallotFormRecord
corresponding to the given
Ballot
record Type.
candidateRecordType
- the ballot record typeNullArgumentException
- ballotRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(ballotRecordType)
is false
mandatory
- This method must be implemented.