| Interface | osid.metering.MeterUtilityAssignmentSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session provides methods to re-assign Moving or adding a reference of a | ||
| Method | canAssignMeters | ||
| Description |
Tests if this user can alter meter/utility mappings. A
return of true does not guarantee successful
authorization. A return of false indicates that it is
known mapping methods in this session will result in a
| ||
| Return | boolean | false if mapping is not authorized, true
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canAssignMetersToUtility | ||
| Description |
Tests if this user can alter meter/utility mappings. A
return of true does not guarantee successful
authorization. A return of false indicates that it is
known mapping methods in this session will result in a
| ||
| Parameters | osid.id.Id | utilityId | the Id of the Utility |
| Return | boolean | false if mapping is not authorized, true
otherwise | |
| Errors | NULL_ARGUMENT | utilityId is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableUtilityIds | ||
| Description |
Gets a list of utilities including and under the given utility node in which any meter can be assigned. | ||
| Parameters | osid.id.Id | utilityId | the Id of the Utility |
| Return | osid.id.IdList | list of assignable utility Ids | |
| Errors | NULL_ARGUMENT | utilityId is null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableUtilityIdsForMeter | ||
| Description |
Gets a list of utilities including and under the given utility node in which a specific meter can be assigned. | ||
| Parameters | osid.id.Id | utilityId | the Id of the Utility |
osid.id.Id | meterId | the Id of the Meter | |
| Return | osid.id.IdList | list of assignable utility Ids | |
| Errors | NULL_ARGUMENT | utility or meterId is null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | assignMeterToUtility | ||
| Description |
Adds an existing | ||
| Parameters | osid.id.Id | meterId | the Id of the Meter |
osid.id.Id | utilityId | the Id of the Utility | |
| Errors | ALREADY_EXISTS | meterId is already assigned to utilityId | |
| NOT_FOUND | meterId or utilityId not found | ||
| NULL_ARGUMENT | meterId or utilityId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | unassignMeterFromUtility | ||
| Description |
Removes a | ||
| Parameters | osid.id.Id | meterId | the Id of the Meter |
osid.id.Id | utilityId | the Id of the Utility | |
| Errors | NOT_FOUND | meterId or utilityId not found or
meterId not assigned to utilityId | |
| NULL_ARGUMENT | meterId or utilityId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |