Interface WarehouseSearchSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession, WarehouseQuerySession
This session provides methods for searching among Warehouses .
The search query is constructed using the WarehouseQuery .
getWarehousesByQuery() is the basic search method and returns a
list of Warehouses . A more advanced search may be performed with
getWarehousesBySearch() .It accepts a WarehouseSearch in
addition to the query for the purpose of specifying additional options
affecting the entire search, such as ordering.
getWarehousesBySearch() returns a WarehouseSearchResults that can
be used to access the resulting WarehouseList or be used to
perform a search within the result set through Warehousesearch .
This session defines views that offer differing behaviors for searching.
- federated warehouse view: searches include warehouses in warehouses of which this warehouse is an ancestor in the warehouse hierarchy
- isolated warehouse view: searches are restricted to warehouses in this warehouse
warehouses may have a query record indicated by their respective
record types. The query record is accessed via the WarehouseQuery
.
-
Method Summary
Modifier and TypeMethodDescriptiongetWarehouseQueryFromInspector(WarehouseQueryInspector warehouseQueryInspector) Gets a warehouse query from an inspector.getWarehousesBySearch(WarehouseQuery warehouseQuery, WarehouseSearch warehouseSearch) Gets the search results matching the given search query using the given search.Gets a warehouse search.Gets a warehouse search order.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.Methods inherited from interface WarehouseQuerySession
canSearchWarehouses, getWarehouseQuery, getWarehousesByQueryModifier and TypeMethodDescriptionbooleanTests if this user can performWarehouselookups.Gets a warehouse query.getWarehousesByQuery(WarehouseQuery warehouseQuery) Gets a list ofWarehousesmatching the given warehouse query.
-
Method Details
-
getWarehouseSearch
WarehouseSearch getWarehouseSearch()Gets a warehouse search.- Returns:
- the warehouse search
- Compliance:
mandatory- This method must be implemented.
-
getWarehouseSearchOrder
WarehouseSearchOrder getWarehouseSearchOrder()Gets a warehouse search order. TheWarehouseSearchOrderis supplied to aWarehouseSearchto specify the ordering of results.- Returns:
- the warehouse search order
- Compliance:
mandatory- This method must be implemented.
-
getWarehousesBySearch
WarehouseSearchResults getWarehousesBySearch(WarehouseQuery warehouseQuery, WarehouseSearch warehouseSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
warehouseQuery- the warehouse querywarehouseSearch- the warehouse search- Returns:
- the warehouse search results
- Throws:
NullArgumentException-warehouseQueryorwarehouseSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-warehouseQueryorwarehouseSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getWarehouseQueryFromInspector
Gets a warehouse query from an inspector. The inspector is available from aWarehousesearchResults.- Parameters:
warehouseQueryInspector- a warehouse query inspector- Returns:
- the warehouse query
- Throws:
NullArgumentException-warehouseQueryInspectorisnullUnsupportedException-warehouseQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-