Package org.cyclos.impl.banking
Class TransferNotificationProcessingHandlerImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractGlobalServerComponent
-
- org.cyclos.impl.BaseGlobalHandlerImpl
-
- org.cyclos.impl.banking.TransferNotificationProcessingHandlerImpl
-
- All Implemented Interfaces:
EntityNotificationProcessingHandler<Transfer>
@Component public class TransferNotificationProcessingHandlerImpl extends BaseGlobalHandlerImpl implements EntityNotificationProcessingHandler<Transfer>
Handler to process the notifications forNotificationProcessingEntityType.TRANSFER, i.e transfers with pending-notification in true.
-
-
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 TransferNotificationProcessingHandlerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NotificationProcessingEntityType<Transfer>getType()The type this handler is associated to.List<Transfer>loadToNotify(List<Long> ids)Returns a list of entities to be notified, with the given idsvoidprocess(Transfer transfer)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<Transfer> getType()
Description copied from interface:EntityNotificationProcessingHandlerThe type this handler is associated to.- Specified by:
getTypein interfaceEntityNotificationProcessingHandler<Transfer>
-
loadToNotify
public List<Transfer> loadToNotify(List<Long> ids)
Description copied from interface:EntityNotificationProcessingHandlerReturns a list of entities to be notified, with the given ids- Specified by:
loadToNotifyin interfaceEntityNotificationProcessingHandler<Transfer>
-
process
public void process(Transfer transfer)
Description copied from interface:EntityNotificationProcessingHandlerProcesses the notifications generated by the given entity- Specified by:
processin interfaceEntityNotificationProcessingHandler<Transfer>
-
-