OSID Logo
OSID Specifications
metering package
Version 3.1.0
Interfaceosid.metering.MeterQuerySession
Implementsosid.OsidSession
Implemented Byosid.metering.StatisticSearchSession
osid.metering.MeterSearchSession
Used Byosid.metering.MeteringManager
osid.metering.MeteringProxyManager
Description

This session provides methods for searching among meters. The search query is constructed using the MeterQuery.

This session defines views that offer differing behaviors for searching.

  • federated utility view: searches include meters in utilities of which this utility is an ancestor in the utility hierarchy
  • isolated utility view: searches are restricted to meters 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.
MethodcanSearchMeters
Description

Tests if this user can perform Meter 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 meters 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.
MethodgetMeterQuery
Description

Gets a meter query.

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

Gets a list of meters matching the given meter query.

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