OSID Logo
OSID Specifications
voting package
Version 3.1.0
Interfaceosid.voting.VoteSearchOrder
Implementsosid.OsidRelationshipSearchOrder
Used Byosid.voting.VoteSearchSession
osid.voting.VoteSmartPollsSession
Description

An interface for specifying the ordering of search results.

MethodorderByCandidate
Description

Specified a preference for ordering results by the candidate.

Parametersosid.SearchOrderStylestyle search order style
ErrorsNULL_ARGUMENT style is null
Compliancemandatory This method must be implemented.
MethodsupportsCandidateSearchOrder
Description

Tests if a CandidateSearchOrder is available.

Returnboolean true if a candidate search order is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetCandidateSearchOrder
Description

Gets the search order interface for a candidate.

Returnosid.voting.CandidateSearchOrder the candidate search order
ErrorsUNIMPLEMENTED supportsCandidateSearchOrder() is false
Complianceoptional This method must be implemented if supportsCandidateSearchOrder() is true.
MethodorderByVoter
Description

Specified a preference for ordering results by the voter.

Parametersosid.SearchOrderStylestyle search order style
ErrorsNULL_ARGUMENT style is null
Compliancemandatory This method must be implemented.
MethodsupportsVoterSearchOrder
Description

Tests if a ResourceSearchOrder is available.

Returnboolean true if a resource search order is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetVoterSearchOrder
Description

Gets the search order for a resource.

Returnosid.resource.ResourceSearchOrder the resource search order
ErrorsUNIMPLEMENTED supportsVoterSearchOrder() is false
Complianceoptional This method must be implemented if supportsVoterSearchOrder() is true.
MethodorderByVotingAgent
Description

Specified a preference for ordering results by the voteing agent.

Parametersosid.SearchOrderStylestyle search order style
ErrorsNULL_ARGUMENT style is null
Compliancemandatory This method must be implemented.
MethodsupportsVotingAgentSearchOrder
Description

Tests if an AgentSearchOrder is available.

Returnboolean true if an agent search order is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetVotingAgentSearchOrder
Description

Gets the search order for an agent.

Returnosid.authentication.AgentSearchOrder the agent search order
ErrorsUNIMPLEMENTED supportsVotingAgentSearchOrder() is false
Complianceoptional This method must be implemented if supportsVotingAgentSearchOrder() is true.
MethodorderByVotes
Description

Specified a preference for ordering results by the number of votes.

Parametersosid.SearchOrderStylestyle search order style
ErrorsNULL_ARGUMENT style is null
Compliancemandatory This method must be implemented.
MethodgetVoteSearchOrderRecord
Description

Gets the vote search order record corresponding to the given vote record Type. Multiple retrievals return the same underlying object.

Parametersosid.type.TypevoteRecordType a vote record type
Returnosid.voting.records.VoteSearchOrderRecord the vote search order record
ErrorsNULL_ARGUMENT voteRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(VoteRecordType) is false
Compliancemandatory This method must be implemented.