public interface ProductSmartStoreSession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A ProductQuery
can be retrieved from this session
and mapped to this Store
to create a virtual collection of
Products.
The products may be sequenced using the
ProductSearchOrder
from this session.
This Store
has a default query that matches any product
and a default search order that specifies no sequencing. The queries may
be examined using a ProductQueryInspector.
The query may be
modified by converting the inspector back to a ProductQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyProductQuery(ProductQuery productQuery)
Applies a product query to this store.
|
void |
applyProductSequencing(ProductSearchOrder productSearchOrder)
Applies a product search order to this store.
|
boolean |
canManageSmartStores()
Tests if this user can manage smart stores.
|
ProductQuery |
getProductQuery()
Gets a product query.
|
ProductQuery |
getProductQueryFromInspector(ProductQueryInspector productQueryInspector)
Gets a product query from an inspector.
|
ProductSearchOrder |
getProductSearchOrder()
Gets a product search order.
|
Store |
getStore()
Gets the
Store associated with this session. |
Id |
getStoreId()
Gets the
Store Id associated with this
session. |
ProductQueryInspector |
inspectProductQuery()
Gets a product query inspector for this store.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getStoreId()
Store
Id
associated with this
session. Store Id
associated with this sessionmandatory
- This method must be implemented. Store getStore() throws OperationFailedException, PermissionDeniedException
Store
associated with this session. Store
associated with this sessionOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageSmartStores()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false
if smart store management is not
authorized, true
otherwisemandatory
- This method must be implemented. ProductQuery getProductQuery()
mandatory
- This method must be implemented. ProductSearchOrder getProductSearchOrder()
mandatory
- This method must be implemented. void applyProductQuery(ProductQuery productQuery) throws OperationFailedException, PermissionDeniedException
productQuery
- the product queryNullArgumentException
- productQuery
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- productQuery
not
of this servicemandatory
- This method must be implemented. ProductQueryInspector inspectProductQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyProductSequencing(ProductSearchOrder productSearchOrder) throws OperationFailedException, PermissionDeniedException
productSearchOrder
- the product search orderNullArgumentException
- productSearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- productSearchOrder
not of this servicemandatory
- This method must be implemented. ProductQuery getProductQueryFromInspector(ProductQueryInspector productQueryInspector)
productQueryInspector
- a query inspectorNullArgumentException
- productQueryInspector
is null
UnsupportedException
- productQueryInspector
is not of this servicemandatory
- This method must be implemented.