Package org.cyclos.impl.banking
Class TransactionNotificationProcessingHandlerImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractGlobalServerComponent
-
- org.cyclos.impl.BaseGlobalHandlerImpl
-
- org.cyclos.impl.banking.TransactionNotificationProcessingHandlerImpl
-
- All Implemented Interfaces:
EntityNotificationProcessingHandler<Transaction>
@Component public class TransactionNotificationProcessingHandlerImpl extends BaseGlobalHandlerImpl implements EntityNotificationProcessingHandler<Transaction>
Handler to process the notifications forNotificationProcessingEntityType.TRANSACTION, i.e transactions with pending-notification in true (BasePaymentandPaymentRequest).
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.AbstractGlobalServerComponent
rawEntityManagerHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description TransactionNotificationProcessingHandlerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NotificationProcessingEntityType<Transaction>getType()The type this handler is associated to.List<Transaction>loadToNotify(List<Long> ids)Returns a list of entities to be notified, with the given idsvoidprocess(Transaction transaction)Processes the notifications generated by the given entity-
Methods inherited from class org.cyclos.impl.AbstractGlobalServerComponent
getBaseEntityManagerHandler, getEntityManager
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, dataTranslationProxy, delete, detach, doDataTranslationProxy, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
-
-
-
Method Detail
-
getType
public NotificationProcessingEntityType<Transaction> getType()
Description copied from interface:EntityNotificationProcessingHandlerThe type this handler is associated to.- Specified by:
getTypein interfaceEntityNotificationProcessingHandler<Transaction>
-
loadToNotify
public List<Transaction> loadToNotify(List<Long> ids)
Description copied from interface:EntityNotificationProcessingHandlerReturns a list of entities to be notified, with the given ids- Specified by:
loadToNotifyin interfaceEntityNotificationProcessingHandler<Transaction>
-
process
public void process(Transaction transaction)
Description copied from interface:EntityNotificationProcessingHandlerProcesses the notifications generated by the given entity- Specified by:
processin interfaceEntityNotificationProcessingHandler<Transaction>
-
-