OSID Logo
OSID Specifications
metering package
Version 3.1.0
Interfaceosid.metering.MeterSmartUtilitySession
Implementsosid.OsidSession
Used Byosid.metering.MeteringManager
osid.metering.MeteringProxyManager
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.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.
MethodgetMeterQuery
Description

Gets a meter query.

Returnosid.metering.MeterQuery the meter query
Compliancemandatory This method must be implemented.
MethodgetMeterSearchOrder
Description

Gets a meter search order.

Returnosid.metering.MeterSearchOrder the meter search order
Compliancemandatory This method must be implemented.
MethodapplyMeterQuery
Description

Applies a meter query to this utility.

Parametersosid.metering.MeterQuerymeterQuery the meter query
ErrorsNULL_ARGUMENT meterQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED meterQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectMeterQuery
Description

Gets a meter query inspector for this utility.

Returnosid.metering.MeterQueryInspector the meter query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyMeterSequencing
Description

Applies a meter search order to this utility.

Parametersosid.metering.MeterSearchOrdermeterSearchOrder the meter search order
ErrorsNULL_ARGUMENT meterSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED meterSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetMeterQueryFromInspector
Description

Gets a meter query from an inspector.

Parametersosid.metering.MeterQueryInspectormeterQueryInspector a meter query inspector
Returnosid.metering.MeterQuery the meter query
ErrorsNULL_ARGUMENT meterQueryInspector is null
UNSUPPORTED meterQueryInspector is not of this service
Compliancemandatory This method must be implemented.