Interface StockSearch
- All Superinterfaces:
Extensible, OsidCondition, OsidSearch, Suppliable
The search interface for governing stock searches.
-
Method Summary
Modifier and TypeMethodDescriptiongetStockSearchRecord(Type stockSearchRecordType) Gets the stock search record corresponding to the given stock search recordType.voidorderStockResults(StockSearchOrder stockSearchOrder) Specify an ordering to the search results.voidsearchAmongStocks(IdList stockIds) Execute this search among the given list of stocks.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
-
searchAmongStocks
Execute this search among the given list of stocks.- Parameters:
stockIds- list of stocks- Throws:
NullArgumentException-stockIdsisnull- Compliance:
mandatory- This method must be implemented.
-
orderStockResults
Specify an ordering to the search results.- Parameters:
stockSearchOrder- stock search order- Throws:
NullArgumentException-stockSearchOrderisnullUnsupportedException-stockSearchOrderis not of this service- Compliance:
mandatory- This method must be implemented.
-
getStockSearchRecord
Gets the stock search record corresponding to the given stock search recordType. This method is used to retrieve an object implementing the requested record.- Parameters:
stockSearchRecordType- a stock search record type- Returns:
- the stock search record
- Throws:
NullArgumentException-stockSearchRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(stockSearchRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-