| Interface | osid.voting.VoteSearchSession | ||
|---|---|---|---|
| Implements | osid.voting.VoteQuerySession | ||
| Used By | osid.voting.VotingManager | ||
osid.voting.VotingProxyManager | |||
| Description |
This session provides methods for searching
getVotesByQuery() is the basic search method and
returns a list of Votes . A more advanced search
may be performed with getVotesBySearch() . It
accepts a VoteSearch in addition to the query for
the purpose of specifying additional options affecting the
entire search, such as ordering.
getVotesBySearch() returns an
VoteSearchResults that can be used to access the
resulting VoteList or be used to perform a search
within the result set through VoteSearch .
This session defines views that offer differing behaviors for searching.
Votes may have a query record indicated by their
respective record types. The query record is accessed via the
| ||
| Method | getVoteSearch | ||
| Description |
Gets a vote search. | ||
| Return | osid.voting.VoteSearch | the vote search | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getVoteSearchOrder | ||
| Description |
Gets a vote search order. The
| ||
| Return | osid.voting.VoteSearchOrder | the vote search order | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getVotesBySearch | ||
| Description |
Gets the search results matching the given search query using the given search. | ||
| Parameters | osid.voting.VoteQuery | voteQuery | the vote search query |
osid.voting.VoteSearch | voteSearch | the vote search | |
| Return | osid.voting.VoteSearchResults | the returned search results | |
| Errors | NULL_ARGUMENT | voteQuery or voteSearch is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | voteSearch or voteQuery is not of this service | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getVoteQueryFromInspector | ||
| Description |
Gets a vote query from an inspector. The inspector is
available from a | ||
| Parameters | osid.voting.VoteQueryInspector | voteQueryInspector | a vote query inspector |
| Return | osid.voting.VoteQuery | the vote query | |
| Errors | NULL_ARGUMENT | voteQueryInspector is null | |
| UNSUPPORTED | voteQueryInspector is not of this service | ||
| Compliance | mandatory | This method must be implemented. | |