OSID Logo
OSID Specifications
metering package
Version 3.1.0
Interfaceosid.metering.StatisticSearchSession
Implementsosid.metering.MeterQuerySession
Used Byosid.metering.MeteringManager
osid.metering.MeteringProxyManager
Description

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
MethodgetStatisticSearch
Description

Gets a statistic search.

Returnosid.metering.StatisticSearch the statistic search
Compliancemandatory This method must be implemented.
MethodgetStatisticSearchOrder
Description

Gets a statistic search order. The StatisticSearchOrder is supplied to a StatisticSearch to specify the ordering of results.

Returnosid.metering.StatisticSearchOrder the statistic search order
Compliancemandatory This method must be implemented.
MethodgetStatisticsBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.metering.StatisticQuerystatisticQuery the statistics query
osid.metering.StatisticSearchstatisticSearch the statistics search
Returnosid.metering.StatisticSearchResults the returned search results
ErrorsNULL_ARGUMENT statisticQuery or statisticSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED statisticQuery or statisticSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetStatisticQueryFromInspector
Description

Gets a statistic query from an inspector. The inspector is available from a StatisticSearchResults.

Parametersosid.metering.StatisticQueryInspectorstatisticQueryInspector a statistic query inspector
Returnosid.metering.StatisticQuery the statistic query
ErrorsNULL_ARGUMENT statisticQueryInspector is null
UNSUPPORTED statisticQueryInspector is not of this service
Compliancemandatory This method must be implemented.