Interface RaceSearchSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession, RaceQuerySession
This session provides methods for searching among races. The search
query is constructed using the RaceQuery .
getRacesByQuery() is the basic search method and returns a list of
races. A more advanced search may be performed with
getRacesBySearch() .It accepts a RaceSearch in addition to the
query for the purpose of specifying additional options affecting the
entire search, such as ordering. getRacesBySearch() returns a
RaceSearchResults that can be used to access the resulting
RaceList or be used to perform a search within the result set through
RaceSearch .
This session defines views that offer differing behaviors for searching.
- federated polls view: searches include races in polls of which this polls is an ancestor in the polls hierarchy
- isolated polls view: searches are restricted to races in this polls only
-
Method Summary
Modifier and TypeMethodDescriptiongetRaceQueryFromInspector(RaceQueryInspector raceQueryInspector) Gets a race query from an inspector.getRacesBySearch(RaceQuery raceQuery, RaceSearch raceSearch) Gets the search results matching the given search query using the given search.Gets a race search.Gets a race search order.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.Methods inherited from interface RaceQuerySession
canSearchRaces, getPolls, getPollsId, getRaceQuery, getRacesByQuery, useFederatedPollsView, useIsolatedPollsViewModifier and TypeMethodDescriptionbooleanTests if this user can performRacesearches.getPolls()Gets thePollsassociated with this session.Gets thePollsIdassociated with this session.Gets a race query.getRacesByQuery(RaceQuery raceQuery) Gets a list of races matching the given race qiery.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.
-
Method Details
-
getRaceSearch
RaceSearch getRaceSearch()Gets a race search.- Returns:
- the race search
- Compliance:
mandatory- This method must be implemented.
-
getRaceSearchOrder
RaceSearchOrder getRaceSearchOrder()Gets a race search order. TheRaceSearchOrderis supplied to aRaceSearchto specify the ordering of results.- Returns:
- the race search order
- Compliance:
mandatory- This method must be implemented.
-
getRacesBySearch
RaceSearchResults getRacesBySearch(RaceQuery raceQuery, RaceSearch raceSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
raceQuery- the race queryraceSearch- the race search- Returns:
- the returned race search results
- Throws:
NullArgumentException-raceQueryorraceSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-raceQueryorraceSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getRaceQueryFromInspector
Gets a race query from an inspector. The inspector is available from aRaceSearchResults.- Parameters:
raceQueryInspector- a race query inspector- Returns:
- the race query
- Throws:
NullArgumentException-raceQueryInspectorisnullUnsupportedException-raceQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-