SalesPoint Framework v3.0

Hook: Define StoringStock Filter


Requirement

Only selected items of a StoringStock shall be visible to a part of an application.

Filters are most often used in connection with displaying the contents of StoringStocks. If you want to display only selected StockItems, use a filtered StoringStock.

Method of Adaptation
Enable Feature
Level of Support
Parameter Pattern  
HotSpot
Filters
Participants
StoringStockFilter, NewFilter , StoringStock, originalStoringStock , filteredStoringStock

Changes

  1. subclass NewFilter of StoringStockFilter.
  2. NewFilter.contains implements StoringStockFilter.contains returning true for every StockItem that shall be part of the filtered Stock.
  3. instance originalStoringStock of StoringStock.
  4. instance filteredStoringStock of NewFilter with parameter originalStoringStock.

SalesPoint Framework v3.0