OSID Logo
OSID Specifications
ordering package
Version 3.1.0
Interfaceosid.ordering.PriceSmartStoreSession
Implementsosid.OsidSession
Used Byosid.ordering.OrderingManager
osid.ordering.OrderingProxyManager
Description

This session manages queries and sequencing to create "smart" dynamic catalogs. A PriceQuery can be retrieved from this session and mapped to this Store to create a virtual collection of Prices. The prices may be sequenced using the PriceSearchOrder from this session.

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

Like all OsidSessions, PriceSmartStoreSessions are dedicated to single processing threads and a single authenticated user.

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 associated with this session
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.
MethodgetPriceQuery
Description

Gets a price query.

Returnosid.ordering.PriceQuery the price query
Compliancemandatory This method must be implemented.
MethodgetPriceSearchOrder
Description

Gets a price search order.

Returnosid.ordering.PriceSearchOrder the price search order
Compliancemandatory This method must be implemented.
MethodapplyPriceQuery
Description

Applies a price query to this store.

Parametersosid.ordering.PriceQuerypriceQuery the price query
ErrorsNULL_ARGUMENT priceQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED priceQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectPriceQuery
Description

Gets a price query inspector for this store.

Returnosid.ordering.PriceQueryInspector the price query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyPriceSequencing
Description

Applies a price search order to this store.

Parametersosid.ordering.PriceSearchOrderpriceSearchOrder the price search order
ErrorsNULL_ARGUMENT priceSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED priceSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetPriceQueryFromInspector
Description

Gets a price query from an inspector.

Parametersosid.ordering.PriceQueryInspectorpriceQueryInspector a query inspector
Returnosid.ordering.PriceQuery the price query
ErrorsNULL_ARGUMENT priceQueryInspector is null
UNSUPPORTED priceQueryInspector is not of this service
Compliancemandatory This method must be implemented.