Examples of sendNotifications()


Examples of com.sparc.knappsack.components.events.EventDelivery.sendNotifications()

            domainUserRequest.setStatus(Status.DECLINED);
//            update(domainUserRequest);

            EventDelivery deliveryMechanism = eventDeliveryFactory.getEventDelivery(EventType.DOMAIN_USER_ACCESS_REQUEST_CONFIRMATION);
            if (deliveryMechanism != null) {
                success = deliveryMechanism.sendNotifications(domainUserRequest);
                if (!success) {
                    log.error("Error sending Domain User Access Request Confirmation Email:", domainUserRequest);
                }
            }
View Full Code Here

Examples of com.sparc.knappsack.components.events.composits.EventDeliveryWithComposite.sendNotifications()

            EventDeliveryWithComposite deliveryMechanism = eventDeliveryWithCompositeFactory.getEventDelivery(EventType.APPLICATION_VERSION_RESIGN_COMPLETE);
            if (deliveryMechanism != null) {
                if (!success && resignErrorType == null) {
                    resignErrorType = ResignErrorType.GENERIC;
                }
                deliveryMechanism.sendNotifications(applicationVersion, new ApplicationVersionResignCompleteComposite(success, initiationUser, resignErrorType));
            }

            if (success) {
                applicationVersionControllerService.updateApplicationVersionState(id, requestedAppState, true);
            } else {
View Full Code Here

Examples of com.sparc.knappsack.components.events.composits.EventDeliveryWithComposite.sendNotifications()

                if (isTempPassword) {
                    EventComposite composite = new UserPasswordResetComposite(password);
                    EventDeliveryWithComposite deliveryMechanism = eventDeliveryWithCompositeFactory.getEventDelivery(EventType.USER_PASSWORD_RESET);
                    if (deliveryMechanism != null) {
                        boolean notificationSent = deliveryMechanism.sendNotifications(updatedUser, composite);
                        if (!notificationSent) {
                            log.info(String.format("Password reset email not sent to: %s", updatedUser.getEmail()));
                        }
                    }
                }
View Full Code Here

Examples of com.sparc.knappsack.components.events.sqs.SQSEventDelivery.sendNotifications()

            EmailModel emailModel = JsonUtil.unmarshall(message.getBody(), EmailModel.class);
            convertIntegersToLongs(emailModel);
            if (emailModel != null) {
                SQSEventDelivery deliveryMechanism = sqsEventDeliveryFactory.getEventDelivery(emailModel.getEventType());
                if (deliveryMechanism != null) {
                    success = deliveryMechanism.sendNotifications(emailModel);
                }

                if (success) {
                    deleteMessageFromQueue(message);
                } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.