Package com.sparc.knappsack.models

Examples of com.sparc.knappsack.models.UserModel


        boolean success = false;
        if (emailModel != null) {
            try {
                Long applicationVersionId = (Long) emailModel.getParams().get("applicationVersionId");

                UserModel userModel = null;
                Map<String, Object> userModelMap = (Map<String, Object>) emailModel.getParams().get("userModel");
                if (userModelMap != null) {
                    userModel = new UserModel();
                    userModel.setEmail((String) userModelMap.get("email"));
                    Integer id = (Integer) userModelMap.get("id");
                    if (id != null) {
                        userModel.setId(id.longValue());
                    }
                    userModel.setFirstName((String) userModelMap.get("firstName"));
                    userModel.setLastName((String) userModelMap.get("lastName"));
                    userModel.setUserName((String) userModelMap.get("userName"));
                }

                success = emailService.sendApplicationPublishRequestEmail(applicationVersionId, userModel);
            } catch (ClassCastException e) {
                log.error("Error casting params out of EmailModel:", e);
View Full Code Here


    public boolean sendNotifications(EmailModel emailModel) {
        boolean success = false;
        if (emailModel != null) {
            try {
                Long organizationId = (Long) emailModel.getParams().get("organizationId");
                UserModel userModel = null;
                Map<String, Object> userModelMap = (Map<String, Object>) emailModel.getParams().get("userModel");
                if (userModelMap != null) {
                    userModel = new UserModel();
                    userModel.setEmail((String) userModelMap.get("email"));
                    Integer id = (Integer) userModelMap.get("id");
                    if (id != null) {
                        userModel.setId(id.longValue());
                    }
                    userModel.setFirstName((String) userModelMap.get("firstName"));
                    userModel.setLastName((String) userModelMap.get("lastName"));
                    userModel.setUserName((String) userModelMap.get("userName"));
                }
                success = emailService.sendOrganizationRegistrationEmail(organizationId, userModel);
            } catch (ClassCastException e) {
                log.error("Error casting params out of EmailModel:", e);
            }
View Full Code Here

                        Integer domainUserRequestId = (Integer) modelMap.get("id");
                        if (domainUserRequestId != null) {
                            domainUserRequestModel.setId(domainUserRequestId.longValue());
                        }

                        UserModel userModel = null;
                        Map<String, Object> userModelMap = (Map<String, Object>) modelMap.get("user");
                        if (userModelMap != null) {
                            userModel = new UserModel();
                            userModel.setEmail((String) userModelMap.get("email"));
                            Integer id = (Integer) userModelMap.get("id");
                            if (id != null) {
                                userModel.setId(id.longValue());
                            }
                            userModel.setFirstName((String) userModelMap.get("firstName"));
                            userModel.setLastName((String) userModelMap.get("lastName"));
                            userModel.setUserName((String) userModelMap.get("userName"));

                            domainUserRequestModel.setUser(userModel);
                        }

                        GroupModel groupModel = new GroupModel();
View Full Code Here

    public boolean sendNotifications(EmailModel emailModel) {
        boolean success = false;
        if (emailModel != null) {
            try {
                Long organizationId = (Long) emailModel.getParams().get("organizationId");
                UserModel userModel = (UserModel) emailModel.getParams().get("userModel");

                List<UserModel> userModelList = new ArrayList<UserModel>();
                userModelList.add(userModel);

                success = emailService.sendBandwidthLimitNotification(organizationId, userModelList);
View Full Code Here

            model.setApplicationType(keyVaultEntry.getApplicationType());
            model.setCreateDate(keyVaultEntry.getCreateDate());

            User user = userService.getByEmail(keyVaultEntry.getChangedBy());
            if (user != null) {
                UserModel userModel = new UserModel();
                userModel.setFirstName(user.getFirstName());
                userModel.setLastName(user.getLastName());
                userModel.setEmail(user.getEmail());

                model.setCreatedBy(userModel);
            }
        }
        return model;
View Full Code Here

TOP

Related Classes of com.sparc.knappsack.models.UserModel

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.