public interface StockSmartWarehouseSession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A StockQuery
can be retrieved from this session
and mapped to this CoursOfferingeCatalog
to create a
virtual collection of Stocks.
The stocks may be sequenced
using the StockSearchOrder
from this session.
This Warehouse
has a default query that matches any
stock and a default search order that specifies no sequencing. The queries
may be examined using a StockQueryInspector.
The query may
be modified by converting the inspector back to a StockQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyStockQuery(StockQuery stockQuery)
Applies a stock query to this warehouse.
|
void |
applyStockSequencing(StockSearchOrder stockSearchOrder)
Applies a stock search order to this warehouse.
|
boolean |
canManageSmartWarehouses()
Tests if this user can manage smart warehouses.
|
StockQuery |
getStockQuery()
Gets a stock query.
|
StockQuery |
getStockQueryFromInspector(StockQueryInspector stockQueryInspector)
Gets a stock query from an inspector.
|
StockSearchOrder |
getStockSearchOrder()
Gets a stock search order.
|
Warehouse |
getWarehouse()
Gets the
Warehouse associated with this session. |
Id |
getWarehouseId()
Gets the
Warehouse Id associated with
this session. |
StockQueryInspector |
inspectStockQuery()
Gets a stock query inspector for this warehouse.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getWarehouseId()
Warehouse
Id
associated with
this session. Warehouse Id
associated with this sessionmandatory
- This method must be implemented. Warehouse getWarehouse() throws OperationFailedException, PermissionDeniedException
Warehouse
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageSmartWarehouses()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false
if smart warehouse management is not
authorized, true
otherwisemandatory
- This method must be implemented. StockQuery getStockQuery()
mandatory
- This method must be implemented. StockSearchOrder getStockSearchOrder()
mandatory
- This method must be implemented. void applyStockQuery(StockQuery stockQuery) throws OperationFailedException, PermissionDeniedException
stockQuery
- the stock queryNullArgumentException
- stockQuery
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- stockQuery
not of
this servicemandatory
- This method must be implemented. StockQueryInspector inspectStockQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyStockSequencing(StockSearchOrder stockSearchOrder) throws OperationFailedException, PermissionDeniedException
stockSearchOrder
- the stock search orderNullArgumentException
- stockSearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- stockSearchOrder
not of this servicemandatory
- This method must be implemented. StockQuery getStockQueryFromInspector(StockQueryInspector stockQueryInspector)
stockQueryInspector
- a query inspectorNullArgumentException
- stockQueryInspector
is null
UnsupportedException
- stockQueryInspector
is not of this servicemandatory
- This method must be implemented.