Package org.xrace.util.validation

Examples of org.xrace.util.validation.ValidationException


  }

  @Override
  public void save(final Course course)
  {
    ValidationException vex = new ValidationException();

    try
    {
      ServiceUtils.validateUniqueAndDetach(course, getCourseParNom(course
          .getEvenement(), course.getNom()), getGenericDao());
    }
    catch (UniqueException e)
    {
      vex.addError("Course.error.nom.unique");
    }

    validateParamsEquipe(course, vex);

    getGenericDao().save(course);

    validateDoublonsPuces(course, vex);

    if (vex.hasErrors())
    {
      throw vex;
    }
  }
View Full Code Here


  public void assignPuces(Course course)
  {
    course = find(course.getId());

    ValidationException vex = new ValidationException();
    validateDoublonsPuces(course, vex);
    validateAssignPuces(course, vex);

    if (vex.hasErrors())
    {
      throw vex;
    }

    List<Puce> pucesDisponibles = new ArrayList<Puce>(course
View Full Code Here

      private static final long serialVersionUID = 3534043622619164257L;

      @Override
      public void onSubmit()
      {
        ValidationException vex = new ValidationException();
        gestionProcessusInscription.validerEquipe(model, vex);

        if (vex.hasErrors())
        {
          ValidationUtils.transferToComponent(vex, this);
          return;
        }
View Full Code Here

      @Override
      public void onSubmit()
      {
        if (composantAutresInfos.isCreateNewEquipe())
        {
          ValidationException vex = new ValidationException();
          gestionProcessusInscription.validerEquipe(
              composantAutresInfos, vex);

          if (vex.hasErrors())
          {
            ValidationUtils.transferToComponent(vex, this);
            return;
          }
        }
View Full Code Here

TOP

Related Classes of org.xrace.util.validation.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.