public interface StockReceiver extends OsidReceiver
The stock receiver is the consumer supplied interface for receiving notifications pertaining to new, updated or deleted stock objects.
| Modifier and Type | Method and Description |
|---|---|
void |
changedStocks(IdList stockIds)
The callback for notification of updated stocks.
|
void |
deletedAncestorStock(Id stockId,
Id ancestorId)
The callback for notifications of deleted stock ancestors.
|
void |
deletedDescendantStock(Id stockId,
Id descendantId)
The callback for notifications of deleted stock descendants.
|
void |
deletedStocks(IdList stockIds)
The callback for notification of deleted stocks.
|
void |
newAncestorStock(Id stockId,
Id ancestorId)
The callback for notifications of new stock ancestors.
|
void |
newDescendantStock(Id stockId,
Id descendantId)
The callback for notifications of new stock descendants.
|
void |
newStocks(IdList stockIds)
The callback for notifications of new stocks.
|
void |
restructuredStockHierarchy()
The callback for notifications of changes to a stock hierarchy where
the hierarchy needs to refreshed.
|
down, upvoid newStocks(IdList stockIds)
stockIds - the Ids of the new Stocks
mandatory - This method must be implemented. void newAncestorStock(Id stockId, Id ancestorId)
stockId - the Id of the Stock ancestorId - the Id of the new Stock
ancestormandatory - This method must be implemented. void newDescendantStock(Id stockId, Id descendantId)
stockId - the Id of the Stock descendantId - the Id of the new Stock
descendantmandatory - This method must be implemented. void changedStocks(IdList stockIds)
stockIds - the Ids of the updated Stocks
mandatory - This method must be implemented. void deletedStocks(IdList stockIds)
stockIds - the Ids of the deleted Stocks
mandatory - This method must be implemented. void deletedAncestorStock(Id stockId, Id ancestorId)
stockId - the Id of the Stock ancestorId - the Id of the removed Stock
ancestormandatory - This method must be implemented. void deletedDescendantStock(Id stockId, Id descendantId)
stockId - the Id of the Stock descendantId - the Id of the removed Stock
descendantmandatory - This method must be implemented. void restructuredStockHierarchy()
mandatory - This method must be implemented.