OSID Logo
OSID Specifications
ordering rules package
Version 3.1.0
Interfaceosid.ordering.rules.PriceEnablerRuleLookupSession
Implementsosid.OsidSession
Used Byosid.ordering.rules.OrderingRulesManager
osid.ordering.rules.OrderingRulesProxyManager
Description

This session provides methods to retrieve PriceEnabler to Price mappings. A Price with multiple PriceEnablers means any positive rule evaluation across the enablers result in an effective Price.

This lookup session defines several views:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition
  • isolated store view: All methods in this session operate, retrieve and pertain price enablers defined explicitly in the current store
  • federated store view: All methods in this session operate, retrieve and pertain to all price enablers defined in this store and any other price enablers implicitly available in this store through store inheritence.
MethodgetStoreId
Description

Gets the Store Id associated with this session.

Returnosid.id.Id the Store Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetStore
Description

Gets the Store associated with this session.

Returnosid.ordering.Store the store
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanLookupPriceEnablerPriceMappings
Description

Tests if this user can perform lookups of price enabler/price mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.

Returnboolean false if looking up mappings is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseComparativePriceEnablerPriceView
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.

Compliancemandatory This method is must be implemented.
MethodusePlenaryPriceEnablerPriceView
Description

A complete view of the PriceEnabler and Price returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

Compliancemandatory This method is must be implemented.
MethoduseFederatedStoreView
Description

Federates the view for methods in this session. A federated view will include price enablers in stores which are children of this store in the store hierarchy.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedStoreView
Description

Isolates the view for methods in this session. An isolated view restricts lookups to this store only.

Compliancemandatory This method is must be implemented.
MethodgetPriceEnablerIdsForPrice
Description

Gets the PriceEnabler Id associated with a Price.

Parametersosid.id.Id priceId Id of the Price
Returnosid.id.IdList the price enabler Ids
ErrorsNOT_FOUND priceId is not found
NULL_ARGUMENT priceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetPriceEnablersForPrice
Description

Gets the PriceEnabler associated with a Price.

Parametersosid.id.IdpriceId Id of the Price
Returnosid.ordering.rules.PriceEnablerList the price enablers
ErrorsNOT_FOUND priceId is not found
NULL_ARGUMENT priceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetPriceEnablersForPriceOnDate
Description

Gets the PriceEnablers associated with a Price and the given date is within the effective dates inclusive.

Parametersosid.id.IdpriceId Id of the Price
osid.calendaring.DateTimedate a date
Returnosid.ordering.rules.PriceEnablerList the price enablers
ErrorsNOT_FOUND priceId is not found
NULL_ARGUMENT priceId or date is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetPriceIdsByPriceEnabler
Description

Gets the Price Ids mapped to a PriceEnabler.

Parametersosid.id.IdpriceEnablerId Id of a PriceEnabler
Returnosid.id.IdList list of price Ids
ErrorsNOT_FOUND priceEnablerId is not found
NULL_ARGUMENT priceEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetPricesByPriceEnabler
Description

Gets the Prices mapped to a PriceEnabler.

Parametersosid.id.IdpriceEnablerId Id of a PriceEnabler
Returnosid.ordering.PriceList list of prices
ErrorsNOT_FOUND priceEnablerId is not found
NULL_ARGUMENT priceEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.