Package com.sparc.knappsack.components.events.composits

Examples of com.sparc.knappsack.components.events.composits.EventDeliveryWithComposite


        ApplicationVersion applicationVersion = applicationVersionService.get(id);
        User initiationUser = userService.getByEmail(user);

        if (applicationVersion != null) {
            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


                success = true;

                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

TOP

Related Classes of com.sparc.knappsack.components.events.composits.EventDeliveryWithComposite

Copyright © 2018 www.massapicom. 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.