| Interface | osid.ordering.PriceScheduleAdminSession | ||
|---|---|---|---|
| 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 | getStoreId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Store Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getStore | ||
| Description |
Gets the | ||
| Return | osid.ordering.Store | the store | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreatePriceSchedules | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if PriceSchedule creation is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreatePriceScheduleWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | priceScheduleRecordTypes | array of price schedule record types |
| Return | boolean | true if PriceSchedule creation using the
specified record Types is supported, false
otherwise | |
| Errors | NULL_ARGUMENT | priceScheduleRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getPriceScheduleFormForCreate | ||
| Description |
Gets the price schedule form for creating new prices. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | priceScheduleRecordTypes | array of price schedule record types |
| Return | osid.ordering.PriceScheduleForm | the price schedule form | |
| Errors | NULL_ARGUMENT | priceScheduleRecordTypes 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 | createPriceSchedule | ||
| Description |
Creates a new | ||
| Parameters | osid.ordering.PriceForm | priceScheduleForm | the form for this PriceSchedule |
| Return | osid.ordering.PriceSchedule | the new PriceSchedule | |
| Errors | ILLEGAL_STATE | priceScheduleForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | priceScheduleForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | priceScheduleForm did not originate from
getPriceScheduleFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdatePriceSchedules | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if PriceSchedule modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getPriceScheduleFormForUpdate | ||
| Description |
Gets the price S\schedule form for updating an existing price. A new price schedule form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | priceScheduleId | the Id of the Price |
| Return | osid.ordering.PriceScheduleForm | the price schedule form | |
| Errors | NULL_ARGUMENT | priceScheduleId is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | updatePriceSchedule | ||
| Description |
Updates an existing price schedule. | ||
| Parameters | osid.ordering.PriceScheduleForm | priceScheduleForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | priceScheduleForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | priceScheduleForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | priceScheduleForm did not originate from
getPriceScheduleFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeletePriceSchedules | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if PriceSchedule deletion is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deletePriceSchedule | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | priceScheduleId | the Id of the PriceSchedule to remove |
| Errors | NOT_FOUND | priceScheduleId not found | |
| NULL_ARGUMENT | priceScheduleId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManagePriceScheduleAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if PriceSchedule aliasing is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasPriceSchedule | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | priceScheduleId | the Id of a PriceSchedule |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | priceScheduleId not found | ||
| NULL_ARGUMENT | priceScheduleId or aliasId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreatePrices | ||
| Description |
Tests if this user can create | ||
| Parameters | osid.id.Id | priceScheduleId | the Id of a PriceSchedule |
| Return | boolean | false if Price creation is not authorized,
true otherwise | |
| Errors | NULL_ARGUMENT | priceScheduleId is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreatePriceWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.id.Id | priceScheduleId | the Id of a PriceSchedule |
osid.type.Type[] | priceRecordTypes | array of price record types | |
| Return | boolean | true if Price creation using the specified
Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | priceScheduleId or priceRecordTypes is
null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getPriceFormForCreate | ||
| Description |
Gets the price form for creating new prices. A new form should be requested for each create transaction. | ||
| Parameters | osid.id.Id | priceScheduleId | the Id of a PriceSchedule |
osid.type.Type[] | priceRecordTypes | array of price record types | |
| Return | osid.grading.GradeForm | the price form | |
| Errors | NOT_FOUND | priceScheduleId is not found | |
| NULL_ARGUMENT | priceScheduleId or priceRecordTypes 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 | createPrice | ||
| Description |
Creates a new | ||
| Parameters | osid.ordering.PriceForm | priceForm | the form for this Price |
| Return | osid.ordering.Price | the new Price | |
| Errors | ILLEGAL_STATE | priceForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | priceForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | priceForm did not originate from
getPriceFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdatePrices | ||
| Description |
Tests if this user can update | ||
| Parameters | osid.id.Id | priceScheduleId | the Id of a PriceSchedule |
| Return | boolean | false if Price modification is not
authorized, true otherwise | |
| Errors | NULL_ARGUMENT | priceSchedule is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getPriceFormForUpdate | ||
| Description |
Gets the price form for updating an existing price. A new price form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | priceId | the Id of the Price |
| Return | osid.ordering.PriceForm | the price form | |
| Errors | NOT_FOUND | priceId is not found | |
| NULL_ARGUMENT | priceId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updatePrice | ||
| Description |
Updates an existing price. | ||
| Parameters | osid.ordering.PriceForm | priceForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | priceForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | priceForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | priceForm did not originate from
getPriceFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeletePrices | ||
| Description |
Tests if this user can delete prices. A return of true
does not guarantee successful authorization. A return of
false indicates that it is known deleting a | ||
| Parameters | osid.id.Id | priceScheduleId | the Id of a PriceSchedule |
| Return | boolean | false if Grade deletion is not authorized,
true otherwise | |
| Errors | NULL_ARGUMENT | priceScheduleId is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deletePrice | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | priceId | the Id of the Price to remove |
| Errors | NOT_FOUND | priceId not found | |
| NULL_ARGUMENT | priceId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManagePriceAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Price aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasPrice | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | priceId | the Id of a Price |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | priceId not found | ||
| NULL_ARGUMENT | priceId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |