Interface StockSearch

All Superinterfaces:
Extensible, OsidCondition, OsidSearch, Suppliable

public interface StockSearch extends OsidSearch

The search interface for governing stock searches.

  • Method Details

    • searchAmongStocks

      void searchAmongStocks(IdList stockIds)
      Execute this search among the given list of stocks.
      Parameters:
      stockIds - list of stocks
      Throws:
      NullArgumentException - stockIds is null
      Compliance:
      mandatory - This method must be implemented.
    • orderStockResults

      void orderStockResults(StockSearchOrder stockSearchOrder)
      Specify an ordering to the search results.
      Parameters:
      stockSearchOrder - stock search order
      Throws:
      NullArgumentException - stockSearchOrder is null
      UnsupportedException - stockSearchOrder is not of this service
      Compliance:
      mandatory - This method must be implemented.
    • getStockSearchRecord

      StockSearchRecord getStockSearchRecord(Type stockSearchRecordType) throws OperationFailedException
      Gets the stock search record corresponding to the given stock search record Type. 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 - stockSearchRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(stockSearchRecordType) is false
      Compliance:
      mandatory - This method must be implemented.