Interface StatisticSearchSession
- All Superinterfaces:
AutoCloseable, Closeable, MeterQuerySession, OsidSession, OsidSession
This session provides methods for searching among statistics The search
query is constructed using the StatisticQuery .
getStatisticsByQuery() is the basic search method and returns a
list of statistics. A more advanced search may be performed with
getStatisticsBySearch() . It accepts a StatisticSearch in
addition to the query for the purpose of specifying additional options
affecting the entire search, such as ordering.
getStatisticsBySearch() returns a StatisticSearchResults that can
be used to access the resulting StatisticList or be used to
perform a search within the result set through StatisticSearch .
This session defines views that offer differing behaviors for searching.
- federated utility view: searches include statistic in utilities of which this utility is an ancestor in the utility hierarchy
- isolated utility view: searches are restricted to statistics in this utility only
-
Method Summary
Modifier and TypeMethodDescriptiongetStatisticQueryFromInspector(StatisticQueryInspector statisticQueryInspector) Gets a statistic query from an inspector.getStatisticsBySearch(StatisticQuery statisticQuery, StatisticSearch statisticSearch) Gets the search results matching the given search query using the given search.Gets a statistic search.Gets a statistic search order.Methods inherited from interface MeterQuerySession
canSearchMeters, getMeterQuery, getMetersByQuery, getUtility, getUtilityId, useFederatedUtilityView, useIsolatedUtilityViewModifier and TypeMethodDescriptionbooleanTests if this user can performMetersearches.Gets a meter query.getMetersByQuery(MeterQuery meterQuery) Gets a list of meters matching the given meter query.Gets theUtilityassociated with this session.Gets theUtilityIdassociated with this session.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.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.
-
Method Details
-
getStatisticSearch
StatisticSearch getStatisticSearch()Gets a statistic search.- Returns:
- the statistic search
- Compliance:
mandatory- This method must be implemented.
-
getStatisticSearchOrder
StatisticSearchOrder getStatisticSearchOrder()Gets a statistic search order. TheStatisticSearchOrderis supplied to aStatisticSearchto specify the ordering of results.- Returns:
- the statistic search order
- Compliance:
mandatory- This method must be implemented.
-
getStatisticsBySearch
StatisticSearchResults getStatisticsBySearch(StatisticQuery statisticQuery, StatisticSearch statisticSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
statisticQuery- the statistics querystatisticSearch- the statistics search- Returns:
- the returned search results
- Throws:
NullArgumentException-statisticQueryorstatisticSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-statisticQueryorstatisticSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getStatisticQueryFromInspector
Gets a statistic query from an inspector. The inspector is available from aStatisticSearchResults.- Parameters:
statisticQueryInspector- a statistic query inspector- Returns:
- the statistic query
- Throws:
NullArgumentException-statisticQueryInspectorisnullUnsupportedException-statisticQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-