| Interface | osid.billing.PeriodAdminSession | ||
|---|---|---|---|
| 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 | getBusinessId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Business Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getBusiness | ||
| Description |
Gets the | ||
| Return | osid.billing.Business | the business | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreatePeriods | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Period creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreatePeriodWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | periodRecordTypes | array of period record types |
| Return | boolean | true if Period creation using the specified
record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | periodRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getPeriodFormForCreate | ||
| Description |
Gets the period form for creating new periods. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | periodRecordTypes | array of period record types |
| Return | osid.billing.PeriodForm | the period form | |
| Errors | NULL_ARGUMENT | periodRecordTypes 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 | createPeriod | ||
| Description |
Creates a new | ||
| Parameters | osid.billing.PeriodForm | periodForm | the form for this Period |
| Return | osid.billing.Period | the new Period | |
| Errors | ILLEGAL_STATE | periodForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | periodForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | periodForm did not originate from
getPeriodFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdatePeriods | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if Period modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getPeriodFormForUpdate | ||
| Description |
Gets the period form for updating an existing period. A new period form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | periodId | the Id of the Period |
| Return | osid.billing.PeriodForm | the period form | |
| Errors | NOT_FOUND | periodId is not found | |
| NULL_ARGUMENT | periodId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updatePeriod | ||
| Description |
Updates an existing period. | ||
| Parameters | osid.billing.PeriodForm | periodForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | periodForm already used in anjupdate transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | periodId or periodForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | periodForm did not originate from
getPeriodFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeletePeriods | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Period deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deletePeriod | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | periodId | the Id of the Period to remove |
| Errors | NOT_FOUND | periodId not found | |
| NULL_ARGUMENT | periodId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManagePeriodAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Period aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasPeriod | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | periodId | the Id of a Period |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is in use as a primary Id | |
| NOT_FOUND | periodId not found | ||
| NULL_ARGUMENT | periodId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |