OSID Logo
OSID Specifications
voting package
Version 3.1.0
Interfaceosid.voting.PollsSearchSession
Implementsosid.voting.PollsQuerySession
Used Byosid.voting.VotingManager
osid.voting.VotingProxyManager
Description

This session provides methods for searching among Polls objects. The search query is constructed using the PollsQuery.

getPollsByQuery() is the basic search method and returns a list of Polls objects.A more advanced search may be performed with getPollsBySearch() .It accepts a PollsSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getPollsBySearch() returns a PollsSearchResults that can be used to access the resulting PollsList or be used to perform a search within the result set through PollsSearch.

Polls may have a polls query record indicated by their respective record types. The polls query record is accessed via the PollsQuery.

MethodgetPollsSearch
Description

Gets a polls search.

Returnosid.voting.PollsSearch the polls search
Compliancemandatory This method must be implemented.
MethodgetPollsSearchOrder
Description

Gets a polls search order. The PollsSearchOrder is supplied to a PollsSearch to specify the ordering of results.

Returnosid.voting.PollsSearchOrder the polls search order
Compliancemandatory This method must be implemented.
MethodgetPollssBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.voting.PollsQuerypollsQuery the polls query
osid.voting.PollsSearchpollsSearch the polls search
Returnosid.voting.PollsSearchResults the polls search results
ErrorsNULL_ARGUMENT pollsQuery or pollsSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED pollsQuery or pollsSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetPollsQueryFromInspector
Description

Gets a polls query from an inspector. The inspector is available from a PollsSearchResults.

Parametersosid.voting.PollsQueryInspectorpollsQueryInspector a polls query inspector
Returnosid.voting.PollsQuery the polls query
ErrorsNULL_ARGUMENT pollsQueryInspector is null
UNSUPPORTED pollsQueryInspector is not of this service
Compliancemandatory This method must be implemented.