SalesPoint Framework v3.0

Hook: Define CountingStock Filter


Requirement

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

Filters are most often used in connection with displaying the contents of CountingStocks. E.g., if you want the user to select items from a Stock of available items, but want to keep a safety margin, you can use a filtered CountingStock for the source Stock.

Method of Adaptation
Enable Feature
Level of Support
Parameter Pattern  
HotSpot
Filters
Participants
CountingStockFilter, NewFilter , CountingStock, originalCountingStock , filteredCountingStock

Changes

  1. subclass NewFilter of CountingStockFilter.
  2. NewFilter.countItems implements CountingStockFilter.countItems .
  3. instance originalCountingStock of CountingStock.
  4. instance filteredCountingStock of NewFilter with parameter originalCountingStock.

SalesPoint Framework v3.0