Class AdminNotificationsHandlerImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseNetworkedHandlerImpl
-
- org.cyclos.impl.utils.notifications.AdminNotificationsHandlerImpl
-
- All Implemented Interfaces:
AdminNotificationsHandler
@Component public class AdminNotificationsHandlerImpl extends BaseNetworkedHandlerImpl implements AdminNotificationsHandler
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
authHandler, conversionHandler, customFieldValueHandler, entityManagerHandler, groupsHandler, productsHandler, restBeanPropertyMapping, userLocatorHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description AdminNotificationsHandlerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadPendingAuthorization(BasicAd ad)Notifies the admin of an ad pending for authorizationvoidapplicationError(ErrorLog errorLog)Notifies about an application errorvoidexternalPaymentExpired(ExternalPayment externalPayment, String payeeInformation)Notifies the admin that did the external payment when it expires.voidexternalPaymentPerformedFailed(ExternalPayment externalPayment, String payeeInformation)Notifies the admin that did the external payment when it fails.voidgeneratedVouchersAboutToExpire(Voucher voucher, int count)Notifies the admin that generated vouchers will expire on a given datevoidgeneratedVouchersExpired(Voucher voucher, int count)Notifies the admin that generated vouchers have expiredvoidnetworkCreated(Network network)Notifies global and multi network admins, multi network admins will get the notification if it is created by one of the admins within their realmvoidpaymentAwaitingAuthorization(Transaction transaction)Notifies the admin that he should authorize this transaction.voidpaymentPerformed(Transaction transaction)Notifies about a performed transactionvoidsystemAlert(SystemAlert alert)Notifies a new system alertvoiduserAlert(UserAlert alert)Notifies a new user alertvoiduserImportRegistration(UserImportedFile importedFile, int importSuccesses, UserGroup group)Notifies the administrators about registration when users has been importedvoiduserRegistration(User user)voidvoucherBuyingAboutToExpire(VoucherType voucherType, Date expirationDate)Notifies the admin that buying a given voucher type is about to expire-
Methods inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
canManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, setAlreadyValidated, toDate, toDateTime, validate
-
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
-
adPendingAuthorization
public void adPendingAuthorization(BasicAd ad)
Description copied from interface:AdminNotificationsHandlerNotifies the admin of an ad pending for authorization- Specified by:
adPendingAuthorizationin interfaceAdminNotificationsHandler
-
applicationError
public void applicationError(ErrorLog errorLog)
Description copied from interface:AdminNotificationsHandlerNotifies about an application error- Specified by:
applicationErrorin interfaceAdminNotificationsHandler
-
externalPaymentExpired
public void externalPaymentExpired(ExternalPayment externalPayment, String payeeInformation)
Description copied from interface:AdminNotificationsHandlerNotifies the admin that did the external payment when it expires.- Specified by:
externalPaymentExpiredin interfaceAdminNotificationsHandler
-
externalPaymentPerformedFailed
public void externalPaymentPerformedFailed(ExternalPayment externalPayment, String payeeInformation)
Description copied from interface:AdminNotificationsHandlerNotifies the admin that did the external payment when it fails.- Specified by:
externalPaymentPerformedFailedin interfaceAdminNotificationsHandler
-
generatedVouchersAboutToExpire
public void generatedVouchersAboutToExpire(Voucher voucher, int count)
Description copied from interface:AdminNotificationsHandlerNotifies the admin that generated vouchers will expire on a given date- Specified by:
generatedVouchersAboutToExpirein interfaceAdminNotificationsHandler
-
generatedVouchersExpired
public void generatedVouchersExpired(Voucher voucher, int count)
Description copied from interface:AdminNotificationsHandlerNotifies the admin that generated vouchers have expired- Specified by:
generatedVouchersExpiredin interfaceAdminNotificationsHandler
-
networkCreated
public void networkCreated(Network network)
Description copied from interface:AdminNotificationsHandlerNotifies global and multi network admins, multi network admins will get the notification if it is created by one of the admins within their realm- Specified by:
networkCreatedin interfaceAdminNotificationsHandler
-
paymentAwaitingAuthorization
public void paymentAwaitingAuthorization(Transaction transaction)
Description copied from interface:AdminNotificationsHandlerNotifies the admin that he should authorize this transaction. Only does the notification if the admin has the permissions to authorize this transfertype, and if the admin is supposed to be the next authorizer.- Specified by:
paymentAwaitingAuthorizationin interfaceAdminNotificationsHandler
-
paymentPerformed
public void paymentPerformed(Transaction transaction)
Description copied from interface:AdminNotificationsHandlerNotifies about a performed transaction- Specified by:
paymentPerformedin interfaceAdminNotificationsHandler
-
systemAlert
public void systemAlert(SystemAlert alert)
Description copied from interface:AdminNotificationsHandlerNotifies a new system alert- Specified by:
systemAlertin interfaceAdminNotificationsHandler
-
userAlert
public void userAlert(UserAlert alert)
Description copied from interface:AdminNotificationsHandlerNotifies a new user alert- Specified by:
userAlertin interfaceAdminNotificationsHandler
-
userImportRegistration
public void userImportRegistration(UserImportedFile importedFile, int importSuccesses, UserGroup group)
Description copied from interface:AdminNotificationsHandlerNotifies the administrators about registration when users has been imported- Specified by:
userImportRegistrationin interfaceAdminNotificationsHandler- Parameters:
importedFile- only used to construct the notification urlimportSuccesses- the users registered successfullygroup- the group the users were registered to
-
userRegistration
public void userRegistration(User user)
- Specified by:
userRegistrationin interfaceAdminNotificationsHandler
-
voucherBuyingAboutToExpire
public void voucherBuyingAboutToExpire(VoucherType voucherType, Date expirationDate)
Description copied from interface:AdminNotificationsHandlerNotifies the admin that buying a given voucher type is about to expire- Specified by:
voucherBuyingAboutToExpirein interfaceAdminNotificationsHandler
-
-