SalesPoint Framework v3.0

Hook: Define MoneyBag Filter


Requirement

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

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

Method of Adaptation
Enable Feature
Level of Support
Parameter Pattern  
HotSpot
Filters
Participants
MoneyBagFilter, NewFilter , MoneyBag, originalMoneyBag , filteredMoneyBag

Changes

  1. subclass NewFilter of MoneyBagFilter.
  2. NewFilter.countItems implements MoneyBag.countItems .
  3. instance originalMoneyBag of MoneyBag.
  4. instance filteredMoneyBag of NewFilter with parameter originalMoneyBag.

SalesPoint Framework v3.0