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

This session provides methods for retrieving PriceEnablers.

This session defines views that offer differing behaviors when retrieving multiple objects.

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete set or is an error condition
  • isolated store view: All price enabler methods in this session operate, retrieve and pertain to price enablers defined explicitly in the current store. Using an isolated view is useful for managing PriceEnablers with the PriceEnablerAdminSession.
  • federated store view: All price enabler 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.

Generally, the comparative view should be used for most applications as it permits operation even if there is data that cannot be accessed. The methods useFederatedDistributorView() and useIsolatedDistributorView() behave as a radio group and one should be selected before invoking the methods in this session.

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.
MethodcanLookupPriceEnablers
Description

Tests if this user can perform PriceEnablers lookups. A return of true does not guarantee successful authorization. A return of false indicates that it is known all 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 lookup methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseComparativePriceEnablerView
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.
MethodusePlenaryPriceEnablerView
Description

A complete view of the PriceEnabler 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.
MethoduseActivePriceEnablerView
Description

Only active price enablers are returned by methods in this session.

Compliancemandatory This method is must be implemented.
MethoduseAnyStatusPriceEnablerView
Description

All active and inactive price enablers are returned by methods in this session.

Compliancemandatory This method is must be implemented.
MethoduseEffectivePriceEnablerView
Description

Only price enablers whose effective dates are current are returned by methods in this session.

Compliancemandatory This method is must be implemented.
MethoduseAnyEffectivePriceEnablerView
Description

All price enablers of any effective dates are returned by all methods in this session.

Compliancemandatory This method is must be implemented.
MethodgetPriceEnabler
Description

Gets the PriceEnabler specified by its Id. In plenary mode, the exact Id is found or a NOT_FOUND results. Otherwise, the returned PriceEnabler may have a different Id than requested, such as the case where a duplicate Id was assigned to a PriceEnabler and retained for compatibility.

Parametersosid.id.IdpriceEnablerId Id of the PriceEnabler
Returnosid.ordering.rules.PriceEnabler the price enabler
ErrorsNOT_FOUND priceEnablerId not found
NULL_ARGUMENT priceEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method is must be implemented.
MethodgetPriceEnablersByIds
Description

Gets a PriceEnablerList corresponding to the given IdList.In plenary mode, the returned list contains all of the price enablers specified in the Id list, in the order of the list, including duplicates, or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible PriceEnablers may be omitted from the list and may present the elements in any order including returning a unique set.

Parametersosid.id.IdListpriceEnablerIds the list of Ids to retrieve
Returnosid.ordering.rules.PriceEnablerList the returned PriceEnabler list
ErrorsNOT_FOUND an Id was not found
NULL_ARGUMENT priceEnablerIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetPriceEnablersByGenusType
Description

Gets a PriceEnablerList corresponding to the given price enabler genus Type which does not include price enablers of genus types derived from the specified Type. In plenary mode, the returned list contains all known price enablers or an error results. Otherwise, the returned list may contain only those price enablers that are accessible through this session.

Parametersosid.type.TypepriceEnablerGenusType a price enabler genus type
Returnosid.ordering.rules.PriceEnablerList the returned PriceEnabler list
ErrorsNULL_ARGUMENT priceEnablerGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetPriceEnablersByParentGenusType
Description

Gets a PriceEnablerList corresponding to the given price enabler genus Type and include any additional price enablers with genus types derived from the specified Type. In plenary mode, the returned list contains all known price enablers or an error results. Otherwise, the returned list may contain only those price enablers that are accessible through this session.

Parametersosid.type.TypepriceEnablerGenusType a price enabler genus type
Returnosid.ordering.rules.PriceEnablerList the returned PriceEnabler list
ErrorsNULL_ARGUMENT priceEnablerGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetPriceEnablersByRecordType
Description

Gets a PriceEnablerList containing the given price enabler record Type. In plenary mode, the returned list contains all known price enablers or an error results. Otherwise, the returned list may contain only those price enablers that are accessible through this session.

Parametersosid.type.TypepriceEnablerRecordType a price enabler record type
Returnosid.ordering.rules.PriceEnablerList the returned PriceEnabler list
ErrorsNULL_ARGUMENT priceEnablerRecordType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetPriceEnablersByDate
Description

Gets a PriceEnablerList within the given date range. In plenary mode, the returned list contains all known price enablers or an error results. Otherwise, the returned list may contain only those price enablers that are accessible through this session.

Parametersosid.calendaring.DateTimefrom a start date
osid.calendaring.DateTimeto an end date
Returnosid.ordering.rules.PriceEnablerList the returned PriceEnabler list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetPriceEnablers
Description

Gets all PriceEnablers. In plenary mode, the returned list contains all known price enablers or an error results. Otherwise, the returned list may contain only those price enablers that are accessible through this session.

Returnosid.ordering.rules.PriceEnablerList the returned PriceEnabler list
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.