Package org.xrace.model.evenements

Examples of org.xrace.model.evenements.CategorieParticipante


  }

  private void validateInfoSaison(final InfoSaison infoSaison,
      final Categorie categorie)
  {
    final CategorieParticipante catPart = getCategorieParticipanteService()
        .getCategorieParticipante(saison2007, categorie);

    Assert.assertNotNull(infoSaison);

    int plaqueInt = Integer.parseInt(infoSaison.getPlaqueUnique());

    Assert.assertTrue(plaqueInt >= catPart.getPlaqueMin());
    Assert.assertTrue(plaqueInt <= catPart.getPlaqueMax());

    Assert.assertTrue(plaqueInt <= catPart.getPlaqueGeleMin()
        || plaqueInt >= catPart.getPlaqueGeleMax());
  }
View Full Code Here


  private void createComponents()
  {
    for (final Categorie categorie : categorieService.list())
    {
      final CategorieParticipante catPart = categorieParticipanteService
          .getCategorieParticipante(saison, categorie);
      if (catPart != null)
      {
        listCatPart
            .add(new CategorieParticipanteLine(categorie, true,
                catPart.getPlaqueMin(), catPart.getPlaqueMax(),
                catPart.getPlaqueGeleMin(), catPart
                    .getPlaqueGeleMax()));
      }
      else
      {
        listCatPart.add(new CategorieParticipanteLine(categorie, false,
View Full Code Here

      {
        map.put(line.getPlaque(), line);
      }
    }

    final CategorieParticipante catPart = categorieParticipanteService
        .getCategorieParticipante(saison, categorie);

    if (catPart.getPlaqueMin() != null && catPart.getPlaqueMax() != null)
    {
      for (int i = catPart.getPlaqueMin(); i <= catPart.getPlaqueMax(); i++)
      {
        if (!map.containsKey(new Integer(i).toString()))
        {
          map.put(new Integer(i).toString(), new PlaqueAttribueeLine(
              new Integer(i).toString()));
View Full Code Here

TOP

Related Classes of org.xrace.model.evenements.CategorieParticipante

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.