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

This session manages queries and sequencing to create "smart" dynamic catalogs. A StatisticQuery can be retrieved from this session and mapped to this Utility to create a virtual collection of Statistics. The entries may be sequenced using the StatisticSearchOrder from this session.

This Utility has a default query that matches any statistic and a default search order that specifies no sequencing. The queries may be examined using a StatisticQueryInspector. The query may be modified by converting the inspector back to a StatisticQuery.

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.
MethodcanManageSmartUtilities
Description

Tests if this user can manage smart utilities. 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 smart operations.

Returnboolean false if smart utility methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetStatisticQuery
Description

Gets a statistic query.

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

Gets a statistic search order.

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

Applies a statistic query to this utility.

Parametersosid.metering.StatisticQuerystatisticQuery the statistic query
ErrorsNULL_ARGUMENT statisticQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED statisticQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectStatisticQuery
Description

Gets a statistic query inspector for this utility.

Returnosid.metering.StatisticQueryInspector the statistic query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyStatisticSequencing
Description

Applies a statistic search order to this utility.

Parametersosid.metering.StatisticSearchOrderstatisticSearchOrder the statistic search order
ErrorsNULL_ARGUMENT statisticSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED statisticSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetStatisticQueryFromInspector
Description

Gets a statistic query from an inspector.

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.