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

This session manages queries and sequencing to create "smart" dynamic stores. A PriceEnablerQuery can be retrieved from this session and mapped to this Store to create a virtual collection of price enablers. The price enablers may be sequenced using the PriceEnablerSearchOrder from this session.

This Store has a default query that matches any price enabler and a default search order that specifies no sequencing. The queries may be examined using a PriceEnablerQueryInspector. The query may be modified by converting the inspector back to a PriceEnablerQuery.

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

Tests if this user can manage smart stores. A return of true does not guarantee successful authorization. A return of false indicates that it is known 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 operations to unauthorized users.

Returnboolean false if smart store management is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetPriceEnablerQuery
Description

Gets a price enabler query.

Returnosid.ordering.rules.PriceEnablerQuery the price enabler query
Compliancemandatory This method must be implemented.
MethodgetPriceEnablerSearchOrder
Description

Gets a price enabler search order.

Returnosid.ordering.rules.PriceEnablerSearchOrder the price enabler search order
Compliancemandatory This method must be implemented.
MethodapplyPriceEnablerQuery
Description

Applies a price enabler query to this store.

Parametersosid.ordering.rules.PriceEnablerQuerypriceEnablerQuery the price enabler query
ErrorsNULL_ARGUMENT priceEnablerQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED priceEnablerQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectPriceEnablerQuery
Description

Gets a price enabler query inspector for this store.

Returnosid.ordering.rules.PriceEnablerQueryInspector the price enabler query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyPriceEnablerSequencing
Description

Applies a price enabler search order to this store.

Parametersosid.ordering.rules.PriceEnablerSearchOrderpriceEnablerSearchOrder the price enabler search order
ErrorsNULL_ARGUMENT priceEnablerSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED priceEnablerSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetPriceEnablerQueryFromInspector
Description

Gets a price enabler query from an inspector.

Parametersosid.ordering.rules.PriceEnablerQueryInspectorpriceEnablerQueryInspector a price enabler query inspector
Returnosid.ordering.rules.PriceEnablerQuery the price enabler query
ErrorsNULL_ARGUMENT priceEnablerQueryInspector is null
UNSUPPORTED priceEnablerQueryInspector is not of this service
Compliancemandatory This method must be implemented.