public interface RaceSmartPollsSession extends OsidSession
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.
| Modifier and Type | Method and Description |
|---|---|
void |
applyRaceQuery(RaceQuery raceQuery)
Applies a race query to this polls.
|
void |
applyRaceSequencing(RaceSearchOrder raceSearchOrder)
Applies a race search order to this polls.
|
boolean |
canManageSmartPolls()
Tests if this user can manage smart polls.
|
Polls |
getPolls()
Gets the
Polls associated with this session. |
Id |
getPollsId()
Gets the
Polls Id associated with this
session. |
RaceQuery |
getRaceQuery()
Gets a race query.
|
RaceQuery |
getRaceQueryFromInspector(RaceQueryInspector raceQueryInspector)
Gets a race query from an inspector.
|
RaceSearchOrder |
getRaceSearchOrder()
Gets a race search order.
|
RaceQueryInspector |
inspectRaceQuery()
Gets a race query inspector for this polls.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getPollsId()
Polls Id associated with this
session. Polls Id associated with this sessionmandatory - This method must be implemented. Polls getPolls() throws OperationFailedException, PermissionDeniedException
Polls associated with this session. Polls associated with this sessionOperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canManageSmartPolls()
PERMISSION_DENIED. This is intended as a hint to an
application that may opt not to offer smart operations. false if smart polls methods are not
authorized, true otherwisemandatory - This method must be implemented. RaceQuery getRaceQuery()
mandatory - This method must be implemented. RaceSearchOrder getRaceSearchOrder()
mandatory - This method must be implemented. void applyRaceQuery(RaceQuery raceQuery) throws OperationFailedException, PermissionDeniedException
raceQuery - the race queryNullArgumentException - raceQuery is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnsupportedException - raceQuery not of
this servicemandatory - This method must be implemented. RaceQueryInspector inspectRaceQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredmandatory - This method must be implemented. void applyRaceSequencing(RaceSearchOrder raceSearchOrder) throws OperationFailedException, PermissionDeniedException
raceSearchOrder - the race search orderNullArgumentException - raceSearchOrder
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnsupportedException - raceSearchOrder
not of this servicemandatory - This method must be implemented. RaceQuery getRaceQueryFromInspector(RaceQueryInspector raceQueryInspector)
raceQueryInspector - a race query inspectorNullArgumentException - raceQueryInspector
is null UnsupportedException - raceQueryInspector
is not of this servicemandatory - This method must be implemented.