Package net.sf.pmr.keopsframework.domain.validation

Examples of net.sf.pmr.keopsframework.domain.validation.Errors.rejectValue()


            errors.rejectValue("login", "user.loginMandatory");
           
        } else if (user.getLogin().length() < 5 || user.getLogin().length() > 10) {
           
            // le login doit avoir entre 5 et 10 caract�res
            errors.rejectValue("login", "user.loginIncorrectSize");
           
        } else if (user.getId() == 0 && userRepository.findUserByLogin(user.getLogin()) != null ) {
           
            // le login doit �tre unique
            errors.rejectValue("login", "user.loginAlreadyExists");
View Full Code Here


            errors.rejectValue("login", "user.loginIncorrectSize");
           
        } else if (user.getId() == 0 && userRepository.findUserByLogin(user.getLogin()) != null ) {
           
            // le login doit �tre unique
            errors.rejectValue("login", "user.loginAlreadyExists");
           
        }
       
        if (user.getPassword() == null
                || user.getPassword().trim() == "") {
View Full Code Here

        }
       
        if (user.getPassword() == null
                || user.getPassword().trim() == "") {

            errors.rejectValue("password", "user.passwordMandatory");

           
        else if (user.getPassword().length() < 5 || user.getPassword().length() > 10) {
           
            // le password doit avoir entre 5 et 10 caract�res
View Full Code Here

           
        else if (user.getPassword().length() < 5 || user.getPassword().length() > 10) {
           
            // le password doit avoir entre 5 et 10 caract�res
            errors.rejectValue("password", "user.passwordIncorrectSize");
        }

        if (user.getLastName() == null
                || user.getLastName().trim() == "") {
View Full Code Here

        }

        if (user.getLastName() == null
                || user.getLastName().trim() == "") {

            errors.rejectValue("lastName", "user.lastNameMandatory");
           
        }

        if (user.getFirstName() == null
                || user.getFirstName().trim() == "") {
View Full Code Here

        }

        if (user.getFirstName() == null
                || user.getFirstName().trim() == "") {

            errors.rejectValue("firstName", "user.firstNameMandatory");
           
        }
       
        if (user.getEmail() == null
                || user.getEmail().trim() == "") {
View Full Code Here

        }
       
        if (user.getEmail() == null
                || user.getEmail().trim() == "") {

            errors.rejectValue("email", "user.emailMandatory");
           
        } else if (!EmailValidator.getInstance().isValid(user.getEmail())) {
           
            //Le format de l'adresse email doit �tre valide
           
View Full Code Here

           
        } else if (!EmailValidator.getInstance().isValid(user.getEmail())) {
           
            //Le format de l'adresse email doit �tre valide
           
            errors.rejectValue("email", "user.incorrectEmail");
           
        }

        
        return errors;
View Full Code Here

        Errors errors = CoreObjectFactory.getErrors();

        if (basicProject.getCode() == null
                || basicProject.getCode().trim() == "") {

            errors.rejectValue("code", "basicProject.codeMandatory");

        } else if (basicProject.getCode().length() > 10) {

            errors.rejectValue("code", "basicProject.codeTooLong");
        }
View Full Code Here

            errors.rejectValue("code", "basicProject.codeMandatory");

        } else if (basicProject.getCode().length() > 10) {

            errors.rejectValue("code", "basicProject.codeTooLong");
        }

        if (basicProject.getName() == null
                || basicProject.getName().trim() == "") {
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.