| Interface | osid.metering.MeterAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session creates, updates, and deletes Create and update operations differ in their usage. To
create a For updates, The delete operations delete This session includes an | ||
| Method | getUtilityId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Utility Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getUtility | ||
| Description |
Gets the | ||
| Return | osid.metering.Utility | the Utility associated with this session | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateMeters | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Meter creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateMeterWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | meterRecordTypes | array of meter record types |
| Return | boolean | true if Meter creation using the specified
record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | meterRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getMeterFormForCreate | ||
| Description |
Gets the meter form for creating new meters. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | meterRecordTypes | array of meter record types |
| Return | osid.metering.MeterForm | the meter form | |
| Errors | NULL_ARGUMENT | meterRecordTypes is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | unable to get form for requested record types | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | createMeter | ||
| Description |
Creates a new | ||
| Parameters | osid.metering.MeterForm | meterForm | the form for this Meter |
| Return | osid.metering.Meter | the new Meter | |
| Errors | ILLEGAL_STATE | meterForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | meterForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | meterForm did not originate from
getMeterFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateMeters | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if Meter modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getMeterFormForUpdate | ||
| Description |
Gets the meter form for updating an existing meter. A new meter form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | meterId | the Id of the Meter |
| Return | osid.metering.MeterForm | the meter form | |
| Errors | NOT_FOUND | meterId is not found | |
| NULL_ARGUMENT | meterId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateMeter | ||
| Description |
Updates an existing meter. | ||
| Parameters | osid.metering.MeterForm | meterForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | meterForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | meterForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | meterForm did not originate from
getMeterFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteMeters | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Meter deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteMeter | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | meterId | the Id of the Meter to remove |
| Errors | NOT_FOUND | meterId is not found | |
| NULL_ARGUMENT | meterId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageMeterAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Meter aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasMeter | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | meterId | the Id of a Meter |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | meterId not found | ||
| NULL_ARGUMENT | meterId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |