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, setGenusTypegetRequiredRecordTypesgetRecordTypes, hasRecordTypegetDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocalegetId, isCurrentclearDisabled, clearEnabled, getDisabledMetadata, getEnabledMetadata, setDisabled, setEnabledclearBranding, clearLicense, clearProvider, getBrandingMetadata, getLicenseMetadata, getProviderMetadata, setBranding, setLicense, setProviderclearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDateMetadata 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.