Package enterprise.web.tookit.exception

Examples of enterprise.web.tookit.exception.ValidationException


  private final void validarExistenciaEmailUsuario(final String email) throws ValidationException {
    try {
      final UserBeanRemote userBean = this.getServiceUserBean();

      if (userBean.emailExist(email)) {
        throw new ValidationException("E-mail de usu�rio ja existente.");
      }
    } catch (NamingException e) {
      throw new ValidationException("Erro durante a verificacao da existencia do e-mail do usuario", e);
    }
  }
View Full Code Here


   * @param String
   * @return
   */
  public final void validarQuantidadeCaracteresSenha() throws ValidationException {
    if (StringUtils.length(this.userPassword) < MIN_LENGHT_PASSWORD) {
      throw new ValidationException("Sua senha deve ter no m�nimo 5 caracteres.");
    }
  }
View Full Code Here

   */
  public final void validarConfirmacaoSenha()
      throws ValidationException {

    if (!this.userPassword.equals(this.confirmUserPassword)) {
      throw new ValidationException("As senhas informados n�o s�o iguais.");
    }
  }
View Full Code Here

   */
  public final boolean validarEmail() throws ValidationException {
    if(EmailValidator.getInstance().isValid(this.email)){
      return true;
    } else {
      throw new ValidationException("E-mail do usuario nao eh valido");
    }
  }
View Full Code Here

   *
   */
  public final void validarDadosIsNull() throws ValidationException {

    if (StringUtils.isBlank(this.userName)) {
      throw new ValidationException("� necess�rio preencher o campo Nome de usu�rio");
    } else if (StringUtils.isBlank(this.userPassword)) {
      throw new ValidationException("� necess�rio preencher o campo senha.");
    } else if (StringUtils.isBlank(this.confirmUserPassword)) {
      throw new ValidationException("� necess�rio preencher o campo Confirme sua senha.");
    } else if (StringUtils.isBlank(email)) {
      throw new ValidationException("� necess�rio preencher o campo E-mail.");
    } else if (StringUtils.isBlank(this.lastUserName)) {
      throw new ValidationException("� necess�rio preencher o campo Sobrenome.");
    }
  }
View Full Code Here

   */
  @Override
  public void recoverPassword(final String email) throws ValidationException, EJBException {

    if (!this.emailExist(email)) {
      throw new ValidationException("E-mail de Usu�rio n�o existe! Favor Verificar o e-mail informado.");
    }

    try {

      final QueueConnection connection = this.factory.createQueueConnection();
View Full Code Here

TOP

Related Classes of enterprise.web.tookit.exception.ValidationException

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.