Interface ProductSearch
- All Superinterfaces:
Extensible, OsidCondition, OsidSearch, Suppliable
The search interface for governing product searches.
-
Method Summary
Modifier and TypeMethodDescriptiongetProductSearchRecord(Type productSearchRecordType) Gets the product search record corresponding to the given product search recordType.voidorderProductResults(ProductSearchOrder productSearchOrder) Specify an ordering to the search results.voidsearchAmongProducts(IdList productIds) Execute this search among the given list of products.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface OsidSearch
limitResultSetModifier and TypeMethodDescriptionvoidlimitResultSet(long start, long end) By default, searches return all matching results.
-
Method Details
-
searchAmongProducts
Execute this search among the given list of products.- Parameters:
productIds- list of products- Throws:
NullArgumentException-productIdsisnull- Compliance:
mandatory- This method must be implemented.
-
orderProductResults
Specify an ordering to the search results.- Parameters:
productSearchOrder- product search order- Throws:
NullArgumentException-productSearchOrderisnullUnsupportedException-productSearchOrderis not of this service- Compliance:
mandatory- This method must be implemented.
-
getProductSearchRecord
ProductSearchRecord getProductSearchRecord(Type productSearchRecordType) throws OperationFailedException Gets the product search record corresponding to the given product search recordType. This method is used to retrieve an object implementing the requested record.- Parameters:
productSearchRecordType- a product search record type- Returns:
- the product search record
- Throws:
NullArgumentException-productSearchRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(productSearchRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-