OSID Logo
OSID Specifications
ordering rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.ordering.rules.PriceEnablerLookupSession
Implementsosid.OsidSession
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.
  • active price enabler view: All price enabler lookup methods return active price enablers
  • any status price enabler view: price enablers of anyactive or inactive status are returned from methods.

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.Idthe Store Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetStore
Description

Gets the Store associated with this session.

Returnosid.ordering.Storethe store
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis 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.

CompliancemandatoryThis 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.

CompliancemandatoryThis 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.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedStoreView
Description

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

CompliancemandatoryThis method is must be implemented.
MethoduseActivePriceEnablerView
Description

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

CompliancemandatoryThis method is must be implemented.
MethoduseAnyStatusPriceEnablerView
Description

All price enablers of any active or inactive status are returned by methods in this session.

CompliancemandatoryThis 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.PriceEnablerthe price enabler
ErrorsNOT_FOUND priceEnablerId not found
NULL_ARGUMENT priceEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdListpriceEnablerIdsthe list of Ids to retrieve
Returnosid.ordering.rules.PriceEnablerListthe returned PriceEnabler list
ErrorsNOT_FOUNDan Id was not found
NULL_ARGUMENT priceEnablerIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.TypepriceEnablerGenusTypea price enabler genus type
Returnosid.ordering.rules.PriceEnablerListthe returned PriceEnabler list
ErrorsNULL_ARGUMENT priceEnablerGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.TypepriceEnablerGenusTypea price enabler genus type
Returnosid.ordering.rules.PriceEnablerListthe returned PriceEnabler list
ErrorsNULL_ARGUMENT priceEnablerGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.TypepriceEnablerRecordTypea price enabler record type
Returnosid.ordering.rules.PriceEnablerListthe returned PriceEnabler list
ErrorsNULL_ARGUMENT priceEnablerRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetPriceEnablersOnDate
Description

Gets a PriceEnablerList effective 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.DateTimefroma start date
osid.calendaring.DateTimetoan end date
Returnosid.ordering.rules.PriceEnablerListthe returned PriceEnabler list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetPriceEnablersOnDateWithAgent
Description

Gets a PriceEnablerList effective 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.id.IdagentIdan agent Id
osid.calendaring.DateTimefroma start date
osid.calendaring.DateTimetoan end date
Returnosid.ordering.rules.PriceEnablerListthe returned PriceEnabler list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT agentId, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.PriceEnablerListthe returned PriceEnabler list
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.