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

This session provides methods for searching statistics. The search query is constructed using the StatisticQuery.

This session defines views that offer differing behaviors for searching.

  • federated utility view: searches include statistics 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
MethodgetUtilityId
Description

Gets the Utility Id associated with this session.

Returnosid.id.Id the Utility Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetUtility
Description

Gets the Utility associated with this session.

Returnosid.metering.Utility the Utility associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanSearchStatistics
Description

Tests if this user can perform Statistic searches. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer search operations to unauthorized users.

Returnboolean false if search methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseFederatedUtilityView
Description

Federates the view for methods in this session. A federated view will include statistics in utilities which are children of this utility in the utility hierarchy.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedUtilityView
Description

Isolates the view for methods in this session. An isolated view restricts lookups to this utility only.

Compliancemandatory This method is must be implemented.
MethodgetStatisticQuery
Description

Gets a statistic query.

Returnosid.metering.StatisticQuery the statistic query
Compliancemandatory This method must be implemented.
MethodgetStatisticsByQuery
Description

Gets a list of statistics matching the given statistics query.

Parametersosid.metering.StatisticQuerystatisticQuery the statistics query
Returnosid.metering.StatisticList the returned StatisticList
ErrorsNULL_ARGUMENT statisticQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED statisticQuery is not of this service
Compliancemandatory This method must be implemented.