Interface VotingBatchProxyManager
- All Superinterfaces:
AutoCloseable, Closeable, OsidProfile, OsidProxyManager, OsidProxyManager, Sourceable, VotingBatchProfile
The voting batch proxy manager provides access to voting batch sessions
and provides interoperability tests for various aspects of this service.
Methods in this manager support the passing of a Proxy . The
sessions included in this manager are:
-
VotingBatchSession: a session to vote in bulk -
CandidateBatchAdminSession: a session to manage candidates in bulk -
RaceBatchAdminSession: a session to manage races in bulk -
BallotBatchAdminSession: a session to manage ballotd in bulk -
PollsBatchAdminSession: a session to create, modify and deletePollsin bulk
-
Method Summary
Modifier and TypeMethodDescriptiongetBallotBatchAdminSession(Proxy proxy) Gets theOsidSessionassociated with the bulk ballot administration service.getBallotBatchAdminSessionForPolls(Id pollsId, Proxy proxy) Gets theOsidSessionassociated with the bulk ballot administration service for the given polls.Gets theOsidSessionassociated with the bulk candidate administration service.getCandidateBatchAdminSessionForPolls(Id pollsId, Proxy proxy) Gets theOsidSessionassociated with the bulk candidate administration service for the given polls.getPollsBatchAdminSession(Proxy proxy) Gets theOsidSessionassociated with the bulk polls administration service.getRaceBatchAdminSession(Proxy proxy) Gets theOsidSessionassociated with the bulk ballot administration service.getRaceBatchAdminSessionForPolls(Id pollsId, Proxy proxy) Gets theOsidSessionassociated with the bulk race administration service for the given polls.getVoteBatchSessionForPolls(Id pollsId, Proxy proxy) Gets theOsidSessionassociated with the bulk voting service for the given polls.getVotingBatchSession(Proxy proxy) Gets theOsidSessionassociated with the bulk voting service.Methods inherited from interface OsidProfile
getBranch, getBranchId, getDescription, getDisplayName, getId, getLocales, getProxyRecordTypes, getReleaseDate, getVersion, supportsJournalBranching, supportsJournalRollback, supportsOSIDVersion, supportsProxyRecordTypeModifier and TypeMethodDescriptionGets this service branch.Gets theBranch Idrepresenting this service branch.Gets a description of this service implementation.Gets a display name for this service implementation.getId()Gets an identifier for this service implementation.Gets the locales supported in this service.Gets the proxy recordTypessupported in this service.Gets the date this service implementation was released.Gets the version of this service implementation.booleanTest for support of a journal branching service.booleanTest for support of a journaling rollback service.booleansupportsOSIDVersion(Version version) Test for support of an OSID specification version.booleansupportsProxyRecordType(Type proxyRecordType) Test for support of a proxy type.Methods inherited from interface OsidProxyManager
closeMethods inherited from interface OsidProxyManager
changeBranch, initialize, rollbackServiceModifier and TypeMethodDescriptionvoidchangeBranch(Id branchId, Proxy proxy) Changes the service branch.voidinitialize(OsidRuntimeManager runtime) Initializes this manager.rollbackService(Date rollbackTime, Proxy proxy) Rolls back this service to a point in time.Methods inherited from interface Sourceable
getBranding, getBrandingIds, getLicense, getProvider, getProviderIdModifier and TypeMethodDescriptionGets a branding, such as an image or logo, expressed using theAssetinterface.Gets the branding assetIds.Gets the terms of usage.Gets theResourcerepresenting the provider.Gets theIdof the provider.Methods inherited from interface VotingBatchProfile
supportsBallotBatchAdmin, supportsCandidateBatchAdmin, supportsPollsBatchAdmin, supportsRaceBatchAdmin, supportsVisibleFederation, supportsVotingBatchAdminModifier and TypeMethodDescriptionbooleanTests if bulk administration of ballots is available.booleanTests if bulk administration of candidates is available.booleanTests if bulk administration of polls is available.booleanTests if bulk administration of races is available.booleanTests if federation is visible.booleanTests if bulk voting is available.
-
Method Details
-
getVotingBatchSession
Gets theOsidSessionassociated with the bulk voting service.- Parameters:
proxy- a proxy- Returns:
- a
VotingBatchAdminSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsVotingBatchAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsVotingBatchAdmin()} is {@code true} .
-
getVoteBatchSessionForPolls
VotingBatchSession getVoteBatchSessionForPolls(Id pollsId, Proxy proxy) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the bulk voting service for the given polls.- Parameters:
pollsId- theIdof thePollsproxy- a proxy- Returns:
- a
VotingBatchAdminSession - Throws:
NotFoundException- noPollsfound by the givenIdNullArgumentException-pollsIdorproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsVotingBatchAdmin()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsVotingBatchAdmin()} and {@code supportsVisibleFederation()} are {@code true}
-
getCandidateBatchAdminSession
CandidateBatchAdminSession getCandidateBatchAdminSession(Proxy proxy) throws OperationFailedException Gets theOsidSessionassociated with the bulk candidate administration service.- Parameters:
proxy- a proxy- Returns:
- a
CandidateBatchAdminSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCandidateBatchAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCandidateBatchAdmin()} is {@code true} .
-
getCandidateBatchAdminSessionForPolls
CandidateBatchAdminSession getCandidateBatchAdminSessionForPolls(Id pollsId, Proxy proxy) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the bulk candidate administration service for the given polls.- Parameters:
pollsId- theIdof thePollsproxy- a proxy- Returns:
- a
CandidateBatchAdminSession - Throws:
NotFoundException- noPollsfound by the givenIdNullArgumentException-pollsIdorproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCandidateBatchAdmin()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCandidateBatchAdmin()} and {@code supportsVisibleFederation()} are {@code true}
-
getRaceBatchAdminSession
Gets theOsidSessionassociated with the bulk ballot administration service.- Parameters:
proxy- a proxy- Returns:
- a
BallotBatchAdminSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsRaceBatchAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRaceBatchAdmin()} is {@code true} .
-
getRaceBatchAdminSessionForPolls
RaceBatchAdminSession getRaceBatchAdminSessionForPolls(Id pollsId, Proxy proxy) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the bulk race administration service for the given polls.- Parameters:
pollsId- theIdof thePollsproxy- a proxy- Returns:
- a
RaceBatchAdminSession - Throws:
NotFoundException- noPollsfound by the givenIdNullArgumentException-pollsIdorproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsRaceBatchAdmin()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRaceBatchAdmin()} and {@code supportsVisibleFederation()} are {@code true}
-
getBallotBatchAdminSession
Gets theOsidSessionassociated with the bulk ballot administration service.- Parameters:
proxy- a proxy- Returns:
- a
BallotBatchAdminSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsBallotBatchAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsBallotBatchAdmin()} is {@code true} .
-
getBallotBatchAdminSessionForPolls
BallotBatchAdminSession getBallotBatchAdminSessionForPolls(Id pollsId, Proxy proxy) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the bulk ballot administration service for the given polls.- Parameters:
pollsId- theIdof thePollsproxy- a proxy- Returns:
- a
BallotBatchAdminSession - Throws:
NotFoundException- noPollsfound by the givenIdNullArgumentException-pollsIdorproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsBallotBatchAdmin()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsBallotBatchAdmin()} and {@code supportsVisibleFederation()} are {@code true}
-
getPollsBatchAdminSession
Gets theOsidSessionassociated with the bulk polls administration service.- Parameters:
proxy- a proxy- Returns:
- a
PollsBatchAdminSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsPollsBatchAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsPollsBatchAdmin()} is {@code true} .
-