OSID Logo
OSID Specifications
metering package
Version 3.0.0
Release Candidate Preview
Interfaceosid.metering.StatisticSmartUtilitySession
Implementsosid.OsidSession
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.Idthe Utility Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetUtility
Description

Gets the Utility associated with this session.

Returnosid.metering.Utilitythe Utility associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethodgetStatisticQuery
Description

Gets a statistic query.

Returnosid.metering.StatisticQuerythe statistic query
CompliancemandatoryThis method must be implemented.
MethodgetStatisticSearchOrder
Description

Gets a statistic search order.

Returnosid.metering.StatisticSearchOrderthe statistic search order
CompliancemandatoryThis method must be implemented.
MethodapplyStatisticQuery
Description

Applies a statistic query to this utility.

Parametersosid.metering.StatisticQuerystatisticQuerythe statistic query
ErrorsNULL_ARGUMENT statisticQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED statisticQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectStatisticQuery
Description

Gets a statistic query inspector for this utility.

Returnosid.metering.StatisticQueryInspectorthe statistic query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyStatisticSequencing
Description

Applies a statistic search order to this utility.

Parametersosid.metering.StatisticSearchOrderstatisticSearchOrderthe statistic search order
ErrorsNULL_ARGUMENT statisticSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED statisticSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetStatisticQueryFromInspector
Description

Gets a statistic query from an inspector.

Parametersosid.metering.StatisticQueryInspectorstatisticQueryInspectora statistic query inspector
Returnosid.metering.StatisticQuerythe statistic query
ErrorsNULL_ARGUMENT statisticQueryInspector is null
UNSUPPORTED statisticQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.