Interface | osid.metering.UtilityLookupSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods for retrieving This session defines views that offer differing behaviors when retrieving multiple objects.
Generally, the comparative view should be used for most
applications as it permits operation even if there is data
that cannot be accessed. For example, a browsing application
may only need to examine the | ||
Method | canLookupUtilities | ||
Description |
Tests if this user can perform | ||
Return | boolean | false if lookup methods are not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativeUtilityView | ||
Description |
The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | usePlenaryUtilityView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getUtility | ||
Description |
Gets the | ||
Parameters | osid.id.Id | utilityId | Id of the Utility |
Return | osid.metering.Utility | the utility | |
Errors | NOT_FOUND | utilityId not found | |
NULL_ARGUMENT | utilityId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getUtilitiesByIds | ||
Description |
Gets a | ||
Parameters | osid.id.IdList | utilityIds | the list of Ids to retrieve |
Return | osid.metering.UtilityList | the returned Utility list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | utilityIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getUtilitiesByGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | utilityGenusType | a utility genus type |
Return | osid.metering.UtilityList | the returned Utility list | |
Errors | NULL_ARGUMENT | utilityGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getUtilitiesByParentGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | utilityGenusType | a utility genus type |
Return | osid.metering.UtilityList | the returned Utility list | |
Errors | NULL_ARGUMENT | utilityGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getUtilitiesByRecordType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | utilityRecordType | a utility record type |
Return | osid.metering.UtilityList | the returned Utility list | |
Errors | NULL_ARGUMENT | utilityRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getUtilitiesByProvider | ||
Description |
Gets a | ||
Parameters | osid.id.Id | resourceId | a resource Id |
Return | osid.metering.UtilityList | the returned Utility list | |
Errors | NULL_ARGUMENT | resourceId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getUtilities | ||
Description |
Gets all | ||
Return | osid.metering.UtilityList | a list of Utilities | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |