| Interface | osid.inventory.ModelSearchSession | ||
|---|---|---|---|
| Implements | osid.inventory.ModelQuerySession | ||
| Used By | osid.inventory.InventoryManager | ||
osid.inventory.InventoryProxyManager | |||
| Description |
This session provides methods for searching among
getModelsByQuery() is the basic search method and
returns a list of Models. A more advanced search
may be performed with getModelsBySearch(). It
accepts a ModelSearch in addition to the query
for the purpose of specifying additional options affecting the
entire search, such as ordering.
getModelsBySearch() returns a
ModelSearchResults that can be used to access the
resulting ModelList or be used to perform a
search within the result set through ModelSearch.
This session defines views that offer differing behaviors for searching.
Models may have a query record indicated by their
respective record types. The queryrecord is accessed via the
| ||
| Method | getModelSearch | ||
| Description |
Gets a model search. | ||
| Return | osid.inventory.ModelSearch | the model search | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getModelSearchOrder | ||
| Description |
Gets a model search order. The
| ||
| Return | osid.inventory.ModelSearchOrder | the model search order | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getModelsBySearch | ||
| Description |
Gets the search results matching the given search query using the given search. | ||
| Parameters | osid.inventory.ModelQuery | modelQuery | the model query |
osid.inventory.ModelSearch | modelSearch | the model search | |
| Return | osid.inventory.ModelSearchResults | the model search results | |
| Errors | NULL_ARGUMENT | modelQuery or modelSearch is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | modelQuery or modelSearch is not of this service | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getModelQueryFromInspector | ||
| Description |
Gets a model query from an inspector. The inspector is
available from a | ||
| Parameters | osid.assessment.ItemQueryInspector | modelQueryInspector | a model query inspector |
| Return | osid.inventory.ModelQuery | the model query | |
| Errors | NULL_ARGUMENT | modelQueryInspector is null | |
| UNSUPPORTED | modelQueryInspector is not of this service | ||
| Compliance | mandatory | This method must be implemented. | |