| Interface | osid.ordering.PriceLookupSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Used By | osid.ordering.OrderingManager | ||
osid.ordering.OrderingProxyManager | |||
| Description |
This session provides methods for retrieving
This session defines views that offer differing behaviors when retrieving multiple objects.
Like all | ||
| 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 | canLookupPrices | ||
| 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 | useComparativePriceView | ||
| 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 must be implemented. | |
| Method | usePlenaryPriceView | ||
| Description |
A complete view of the | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | useFederatedStoreView | ||
| Description |
Federates the view for methods in this session. A federated view will include prices in stores which are children of this store in the store hierarchy. | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | useIsolatedStoreView | ||
| Description |
Isolates the view for methods in this session. An isolated view restricts retrievals to this store only. | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getPrice | ||
| Description |
Gets the | ||
| Parameters | osid.id.Id | priceId | Id of the Price |
| Return | osid.ordering.Price | the price | |
| 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 | getPricesByIds | ||
| Description |
Gets a | ||
| Parameters | osid.id.IdList | priceIds | the list of Ids to retrieve |
| Return | osid.ordering.PriceList | the returned Price list | |
| Errors | NOT_FOUND | an Id was not found | |
| NULL_ARGUMENT | priceIds is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getPricesByGenusType | ||
| Description |
Gets a | ||
| Parameters | osid.type.Type | priceGenusType | a price genus type |
| Return | osid.ordering.PriceList | the returned Price list | |
| Errors | NULL_ARGUMENT | priceGenusType is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getPricesByParentGenusType | ||
| Description |
Gets a | ||
| Parameters | osid.type.Type | priceGenusType | a price genus type |
| Return | osid.ordering.PriceList | the returned Price list | |
| Errors | NULL_ARGUMENT | priceGenusType is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getPricesByRecordType | ||
| Description |
Gets a | ||
| Parameters | osid.type.Type | priceRecordType | a price record type |
| Return | osid.ordering.PriceList | the returned Price list | |
| Errors | NULL_ARGUMENT | priceRecordType is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getPricesForPriceSchedule | ||
| Description |
Gets a In plenary mode, the returned list contains all known prices or an error results. Otherwise, the returned list may contain only those prices that are accessible through this session. | ||
| Parameters | osid.id.Id | priceScheduleId | an Id of a PriceSchedule |
| Return | osid.ordering.PriceList | the returned PriceList | |
| Errors | NULL_ARGUMENT | priceScheduleId is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getPrices | ||
| Description |
Gets all | ||
| Return | osid.ordering.PriceList | a list of Prices | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |