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

This session provides methods for searching Utility objects. The search query is constructed using the UtilityQuery. The utility record Type also specifies the recod for the utility query.

getUtilitiesByQuery() is the basic search method and returns a list of Utility elements. A more advanced search may be performed with getUtilitiesBySearch().It accepts a UtilitySearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getUtilitiesBySearch() returns a UtilitySearchResults that can be used to access the resulting UtilityList or be used to perform a search within the result set through UtilitySearch.

Utilities may have a query record indicated by their respective record types. The query record is accessed via the UtilityQuery. The returns in this session may not be cast directly to these interfaces.

MethodgetUtilitySearch
Description

Gets a utility search.

Returnosid.metering.UtilitySearch the utility search
Compliancemandatory This method must be implemented.
MethodgetUtilitySearchOrder
Description

Gets a utility search order. The UtilitySearchOrder is supplied to a UtilitySearch to specify the ordering of results.

Returnosid.metering.UtilitySearchOrder the utility search order
Compliancemandatory This method must be implemented.
MethodgetUtilitiesBySearch
Description

Gets the search results matching the given search.

Parametersosid.metering.UtilityQueryutilityQuery the utility query
osid.metering.UtilitySearchutilitySearch the utility search
Returnosid.metering.UtilitySearchResults the utility search results
ErrorsNULL_ARGUMENT utilityQuery or utilitySearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED utilityQuery or utilitySearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetUtilityQueryFromInspector
Description

Gets a utility query from an inspector. The inspector is available from a UtilitySearchResults.

Parametersosid.metering.UtilityQueryInspectorutilityQueryInspector a utility query inspector
Returnosid.metering.UtilityQuery the utility query
ErrorsNULL_ARGUMENT utilityQueryInspector is null
UNSUPPORTED utilityQueryInspector is not of this service
Compliancemandatory This method must be implemented.