Package net.fqsc.inscriptions.model.inscriptions

Examples of net.fqsc.inscriptions.model.inscriptions.Inscriptions


  }

  public Inscriptions getInscriptionsPersonne(final Personne personne)
      throws ActionException, SelectionException
  {
    final Inscriptions inscriptions = new Inscriptions(personne);

    for (final Course course : this.getCourses())
    {
      final Inscription inscription = course.getInscription(personne);
      if (inscription != null)
      {
        inscriptions.add(inscription);
      }
    }

    return inscriptions;
  }
View Full Code Here


  public Inscription inscrire(final String commenditaire,
      final Course course, final Personne personne,
      final Categorie categorie, final Club club)
      throws CategorieException
  {
    final Inscriptions inscriptions = course.getInscriptions();

    final Inscription inscription = new Inscription(course, personne);
    inscription.setCommanditaire(commenditaire);
    inscription.setCodeConfirmation(this.generateCodeConfirmation());
    inscription.setNoPlaque("Plaque");
    inscription.setClub(club);
    inscription.setCategorie(categorie);

    try
    {
      if (!inscriptions.add(inscription))
        throw new ValidationException("La validation de dmLite a échoué. ");
    }
    catch (ActionException e)
    {
      throw new SystemeException(e);
View Full Code Here

   * @param domainModel
   */
  public Course(final IDomainModel domainModel)
  {
    super(domainModel);
    this.inscriptions = new Inscriptions(this);
    this.tarifications = new Tarifications(this);
  }
View Full Code Here

        .iterator().next();
    Categorie categorie = this.utils.getCategories().getByCode("XSE", "M");

    final InfoSaison infoSaison = saison.getInfoSaison(personne, categorie);

    final Inscriptions inscriptions = course.getInscriptions();
    inscriptions.createInscription("Commenditaire", "ABC123", "12", course, personne,
        club, categorie);

    personne = this.utils.getPersonnes().getAuthenticatedPersonne("jdeere",
        "123");
    categorie = this.utils.getCategories().getByCode("XSS", "M");

    inscriptions.createInscription("Commenditaire", "ABC124", "3021", course, personne,
        club, categorie);
  }
View Full Code Here

TOP

Related Classes of net.fqsc.inscriptions.model.inscriptions.Inscriptions

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.