OSID Logo
OSID Specifications
voting package
Version 3.0.0
Interfaceosid.voting.CandidateForm
Implementsosid.OsidRelationshipForm
Implemented Byosid.voting.batch.CandidateBatchForm
Used Byosid.voting.CandidateAdminSession
Description

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.

MethodgetResourceMetadata
Description

Gets the metadata for the associated resource.

Returnosid.Metadatametadata for the resource
CompliancemandatoryThis method must be implemented.
MethodsetResource
Description

Sets the resource.

Parametersosid.id.IdresourceIdthe resource Id
ErrorsINVALID_ARGUMENTresourceId is invalid
NULL_ARGUMENTresourceId is null
NO_ACCESSMetadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearResource
Description

Clears the resource.

CompliancemandatoryThis method must be implemented.
MethodgetCandidateFormRecord
Description

Gets the CandidateFormRecord corresponding to the given Candidate record Type .

Parametersosid.type.TypecandidateRecordTypethe candidate record type
Returnosid.voting.records.CandidateFormRecordthe candidate form record
ErrorsNULL_ARGUMENTcandidateRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(candidateRecordType) is false
CompliancemandatoryThis method must be implemented.