Examples of validateUserEmail()


Examples of org.encuestame.mvc.validator.ValidateOperations.validateUserEmail()

            data = filterValue(data);
            if (type.equals(Profile.EMAIL.toString())) {
                //TODO: review pattern email format validator.
                log.debug("update email");
                final UserAccount account = getSecurityService().getUserAccount(getUserPrincipalUsername());
                if (operations.validateUserEmail(data, account)) {
                    security.updateAccountProfile(Profile.EMAIL, data);
                    setSuccesResponse();
                } else {
                    listError.put(type, getMessage("e_005", request, null));
                }
View Full Code Here

Examples of org.encuestame.mvc.validator.ValidateOperations.validateUserEmail()

            completeName = completeName != null ? filterValue(completeName) : null;
            language = language != null ? filterValue(language) : language;
            bio = bio != null ? filterValue(bio) : null;
            //valid flag.
            boolean valid = true;
            boolean emailValid = operations.validateUserEmail(email, account);
            log.debug("emailValid " +emailValid);
            if (!emailValid) {
                listError.put("username", getMessage("e_018", request, null));
                valid = false;
            }
View Full Code Here

Examples of org.encuestame.mvc.validator.ValidateOperations.validateUserEmail()

            userBean.setUsername(username);
            // get the current user logged
            final UserAccount account = getUserAccount();
            final ValidateOperations cv = new ValidateOperations( getServiceManager().getApplicationServices()
                  .getSecurityService());
            boolean emailValid = cv.validateUserEmail(email, account);
            boolean usernameValid = cv.validateUsername(username, account);
            if (emailValid && usernameValid) {
                getServiceManager().getApplicationServices().getSecurityService().createUser(userBean, getUserPrincipalUsername());
                setSuccesResponse();
            } else {
View Full Code Here

Examples of org.encuestame.mvc.validator.ValidateOperations.validateUserEmail()

                    jsonResponse.put("validate", true);
                } else {
                    jsonResponse.put("validate", false);
                }
            } else if (Profile.findProfile(type).equals(Profile.EMAIL)) {
                if (operations.validateUserEmail(valueFilteres, account)) {
                    jsonResponse.put("validate", true);
                } else {
                    jsonResponse.put("validate", false);
                }
            } else {
View Full Code Here

Examples of org.encuestame.mvc.validator.ValidateOperations.validateUserEmail()

            HttpServletResponse response) throws JsonGenerationException,
            JsonMappingException, IOException {
        try {
            final String valueFilteres = filterValue(email);
            final ValidateOperations cv = new ValidateOperations( getServiceManager().getApplicationServices().getSecurityService());
            boolean existEmail = cv.validateUserEmail(valueFilteres, null);
            if (!existEmail) {
                throw new EnMeExpcetion(getMessage("e_008", request, null));
            }
            getMailService().sendEmailJoinInvitation(valueFilteres, getUserPrincipalUsername());
            //FUTURE: count and limit the number of invitations
View Full Code Here

Examples of org.encuestame.mvc.validator.ValidateOperations.validateUserEmail()

        if ("email".equals(type)) {
            if (value.isEmpty() || value.length() < ValidateOperations.MIN_EMAIL_LENGTH) {
                 log.debug("validate email emtpy");
                jsonResponse.put("msg", getMessage("secure.email.emtpy", request, null));
            } else {
                valid = validateOperations.validateUserEmail(value, null);
                log.debug("validate EMAIL"+valid);
                if (valid) {
                    jsonResponse.put("msg", getMessage("secure.email.valid", request, null));
                } else {
                    jsonResponse.put("msg", getMessage("secure.email.notvalid", request, null));
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.