Class ClearIncomingPaymentRelationEntityListener

java.lang.Object
ch.tocco.nice2.persist.core.api.entity.events.InterruptibleEntityFacadeAdapter
ch.tocco.nice2.optional.finance.impl.entitylistener.ClearIncomingPaymentRelationEntityListener
All Implemented Interfaces:
EntityFacadeListener, EventListener

public class ClearIncomingPaymentRelationEntityListener extends InterruptibleEntityFacadeAdapter
Listens on incoming payment changes. Checks if the changed relation was added and if it is a relevant relation of any IncomingPaymentHandler. If so, non relevant data will be cleared/deleted and relevant data will be set. To clear and set data, the corresponding methods of the available IncomingPaymentHandlers will be used.