OSID Logo
OSID Specifications
voting package
Version 3.0.0
Release Candidate Preview
Interfaceosid.voting.RaceSmartPollsSession
Implementsosid.OsidSession
Description

This session manages queries and sequencing to create "smart" dynamic catalogs. A RaceQuery can be retrieved from this session and mapped to this Polls to create a virtual collection of Races. The entries may be sequenced using the RaceSearchOrder from this session.

This Polls has a default query that matches any race and a default search order that specifies no sequencing. The queries may be examined using a RaceQueryInspector. The query may be modified by converting the inspector back to a RaceQuery.

MethodgetPollsId
Description

Gets the Polls Id associated with this session.

Returnosid.id.Idthe Polls Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetPolls
Description

Gets the Polls associated with this session.

Returnosid.voting.Pollsthe Polls associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageSmartPolls
Description

Tests if this user can manage smart polls. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer smart operations.

Returnboolean false if smart polls methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRaceQuery
Description

Gets a race query.

Returnosid.voting.RaceQuerythe race query
CompliancemandatoryThis method must be implemented.
MethodgetRaceSearchOrder
Description

Gets a race search order.

Returnosid.voting.RaceSearchOrderthe race search order
CompliancemandatoryThis method must be implemented.
MethodapplyRaceQuery
Description

Applies a race query to this polls.

Parametersosid.voting.RaceQueryraceQuerythe race query
ErrorsNULL_ARGUMENT raceQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED raceQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectRaceQuery
Description

Gets a race query inspector for this polls.

Returnosid.voting.RaceQueryInspectorthe race query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyRaceSequencing
Description

Applies a race search order to this polls.

Parametersosid.voting.RaceSearchOrderraceSearchOrderthe race search order
ErrorsNULL_ARGUMENT raceSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED raceSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetRaceQueryFromInspector
Description

Gets a race query from an inspector.

Parametersosid.voting.RaceQueryInspectorraceQueryInspectora race query inspector
Returnosid.voting.RaceQuerythe race query
ErrorsNULL_ARGUMENT raceQueryInspector is null
UNSUPPORTED raceQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.