public interface WarehouseQuerySession extends OsidSession
This session provides methods for searching among Warehouse
objects. The search query is constructed using the
WarehouseQuery.
This session defines views that offer differing behaviors for searching.
warehouses may have a query record indicated by their respective
record types. The query record is accessed via the WarehouseQuery.
Modifier and Type | Method and Description |
---|---|
boolean |
canSearchWarehouses()
Tests if this user can perform
Warehouse lookups. |
WarehouseQuery |
getWarehouseQuery()
Gets a warehouse query.
|
WarehouseList |
getWarehousesByQuery(WarehouseQuery warehouseQuery)
Gets a list of
Warehouses matching the given warehouse
query. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canSearchWarehouses()
Warehouse
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 not offer lookup operations to
unauthorized users. false
if search methods are not authorized,
true
otherwisemandatory
- This method must be implemented. WarehouseQuery getWarehouseQuery()
mandatory
- This method must be implemented. WarehouseList getWarehousesByQuery(WarehouseQuery warehouseQuery) throws OperationFailedException, PermissionDeniedException
Warehouses
matching the given warehouse
query.warehouseQuery
- the warehouse query WarehouseList
NullArgumentException
- warehouseQuery
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- warehouseQuery
is
not of this servicemandatory
- This method must be implemented.