Interface PollsSearchSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession, PollsQuerySession
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 .
-
Method Summary
Modifier and TypeMethodDescriptiongetPollsQueryFromInspector(PollsQueryInspector pollsQueryInspector) Gets a polls query from an inspector.getPollssBySearch(PollsQuery pollsQuery, PollsSearch pollsSearch) Gets the search results matching the given search query using the given search.Gets a polls search.Gets a polls 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 PollsQuerySession
canSearchPolls, getPollsByQuery, getPollsQueryModifier and TypeMethodDescriptionbooleanTests if this user can performPollssearches.getPollsByQuery(PollsQuery pollsQuery) Gets a list ofPollsmatching the given query.Gets a polls query.
-
Method Details
-
getPollsSearch
PollsSearch getPollsSearch()Gets a polls search.- Returns:
- the polls search
- Compliance:
mandatory- This method must be implemented.
-
getPollsSearchOrder
PollsSearchOrder getPollsSearchOrder()Gets a polls search order. ThePollsSearchOrderis supplied to aPollsSearchto specify the ordering of results.- Returns:
- the polls search order
- Compliance:
mandatory- This method must be implemented.
-
getPollssBySearch
PollsSearchResults getPollssBySearch(PollsQuery pollsQuery, PollsSearch pollsSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
pollsQuery- the polls querypollsSearch- the polls search- Returns:
- the polls search results
- Throws:
NullArgumentException-pollsQueryorpollsSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-pollsQueryorpollsSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getPollsQueryFromInspector
Gets a polls query from an inspector. The inspector is available from aPollsSearchResults.- Parameters:
pollsQueryInspector- a polls query inspector- Returns:
- the polls query
- Throws:
NullArgumentException-pollsQueryInspectorisnullUnsupportedException-pollsQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-