OSID Logo
OSID Specifications
metering package
Version 3.0.0
Release Candidate Preview
Interfaceosid.metering.MeterSmartUtilitySession
Implementsosid.OsidSession
Description

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

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

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

Gets a meter query.

Returnosid.metering.MeterQuerythe meter query
CompliancemandatoryThis method must be implemented.
MethodgetMeterSearchOrder
Description

Gets a meter search order.

Returnosid.metering.MeterSearchOrderthe meter search order
CompliancemandatoryThis method must be implemented.
MethodapplyMeterQuery
Description

Applies a meter query to this utility.

Parametersosid.metering.MeterQuerymeterQuerythe meter query
ErrorsNULL_ARGUMENT meterQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED meterQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectMeterQuery
Description

Gets a meter query inspector for this utility.

Returnosid.metering.MeterQueryInspectorthe meter query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyMeterSequencing
Description

Applies a meter search order to this utility.

Parametersosid.metering.MeterSearchOrdermeterSearchOrderthe meter search order
ErrorsNULL_ARGUMENT meterSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED meterSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetMeterQueryFromInspector
Description

Gets a meter query from an inspector.

Parametersosid.metering.MeterQueryInspectormeterQueryInspectora meter query inspector
Returnosid.metering.MeterQuerythe meter query
ErrorsNULL_ARGUMENT meterQueryInspector is null
UNSUPPORTED meterQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.