Examples of Personnes


Examples of net.fqsc.inscriptions.model.identification.Personnes

   */
  public Personne getPersonne()
  {
    if (this.personne == null)
    {
      final Personnes personnes = (Personnes) this.getDomainModel().getEntry(
          "Personnes");
      this.personne = (Personne) personnes.retrieveByOid(new Oid(
          this.personneOid));
    }
    return this.personne;
  }
View Full Code Here

Examples of net.fqsc.inscriptions.model.identification.Personnes

   */
  public Personne getPersonne()
  {
    if (this.personne == null)
    {
      final Personnes personnes = (Personnes) this.getDomainModel().getEntry(
          "Personnes");
      this.personne = (Personne) personnes.retrieveByOid(new Oid(
          this.personneOid));
    }
    return this.personne;
  }
View Full Code Here

Examples of net.fqsc.inscriptions.model.identification.Personnes

  @Test
  public final void testAjoutTransaction(){
   
    final Facture facture = this.facturationCtrl.createFacture();
   
    final Personnes personnes = this.identificationCtrl.getPersonnes();
    final Personne personne = (Personne)personnes.getList().get(0);
   
    this.facturationCtrl.createTransaction(personne, facture, 160.0);
   
  }
View Full Code Here

Examples of net.fqsc.inscriptions.model.identification.Personnes

   */
  public Personne getPersonne()
  {
    if (this.personne == null)
    {
      final Personnes personnes = (Personnes) this.getDomainModel()
          .getEntry("Personnes");
      this.personne = (Personne) personnes.retrieveByOid(new Oid(
          this.personneOid));
    }
    return this.personne;
  }
View Full Code Here

Examples of net.fqsc.inscriptions.model.identification.Personnes

  public void setPersonneOid(final Long personneOid)
  {
    this.personneOid = personneOid;
    if (personneOid != null)
    {
      final Personnes personnes = (Personnes) this.getDomainModel()
          .getEntry("Personnes");
      this.personne = (Personne) personnes.retrieveByOid(new Oid(
          personneOid));
    }
  }
View Full Code Here

Examples of net.fqsc.inscriptions.model.identification.Personnes

  public Personne createPersonne(final String nom, final String prenom, final String adresse,
      final String ville, final String codePostal, final String telephone,
      final Date dateNaissance, final String sexe, final String province, final String pays,
      final String courriel, final String nationnalite){
   
    final Personnes personnes = (Personnes) this.domainModel.getEntry("Personnes");
    Personne personne = null;
   
    try {
           
        Validate.argNotNull(nom, "nom");
        Validate.argNotNull(prenom, "prenom");
        Validate.argNotNull(adresse, "adresse");
        Validate.argNotNull(ville, "ville");
        Validate.argNotNull(codePostal, "codePostal");
        Validate.argNotNull(telephone, "telephone");
        Validate.argNotNull(dateNaissance, "dateNaissance");
        Validate.argNotNull(sexe, "sexe");
        Validate.argNotNull(pays, "pays");   
        Validate.argNotNull(courriel, "courriel");
        Validate.argNotNull(nationnalite, "nationnalite");
   
        if(!Validator.email(courriel)){
          throw new IllegalArgumentException("L'adresse courriel: "+courriel+" : n'est pas valide");
        }
           
        personne = personnes.createPersonne(nom, prenom, adresse, ville, codePostal, telephone, dateNaissance, sexe, province, pays, courriel, nationnalite);
       
    } catch (final ActionException e) {
      throw new SystemeException(e);
    }
   
View Full Code Here

Examples of net.fqsc.inscriptions.model.identification.Personnes

    return personne;
  }
 
  public boolean isEmailUsed(final String email){
   
    final Personnes personnes = (Personnes) this.domainModel.getEntry("Personnes");
       
    try {
     
      final SelectionCriteria criteria = SelectionCriteria.defineContainCriteria("courriel", email);
     
      if( (personnes.getEntities(criteria)).isEmpty()) 
        return false;
             
    } catch (final SelectionException e) {
      throw new SystemeException(e);
    }
View Full Code Here

Examples of net.fqsc.inscriptions.model.identification.Personnes

  public boolean isUsernameUsed(final String username)
  {
 
    Personne personne;
    SelectionCriteria criteria;
    final Personnes personnes = (Personnes) this.domainModel.getEntry("Personnes");
   
    try{
     
      for (final Iterator x = personnes.getList().iterator(); x.hasNext();)
      {
        personne = (Personne) x.next();
        criteria = SelectionCriteria.defineContainCriteria("username", username);
       
        if( !personne.getComptes().getEntities(criteria).isEmpty() )
View Full Code Here

Examples of net.fqsc.inscriptions.model.identification.Personnes

 
  public Personne getPersonneByOid(final Oid oid){
   
    Validate.argNotNull(oid, "oid");
   
    final Personnes personnes = (Personnes) this.domainModel.getEntry("Personnes");   
   
    if(personnes.equals(null))
      throw new ValidationException("Il n'y a pas d'objet personne pour ce oid");
   
    return (Personne) personnes.retrieveByOid(oid);   
   
  }
View Full Code Here

Examples of net.fqsc.inscriptions.model.identification.Personnes

  }

  private void createTestPersonnes() throws ActionException,
      SelectionException
  {
    final Personnes personnes = this.utils.getPersonnes();
    Personne personne;

    personne = personnes.createPersonne("Doe", "John", "38 rue St-Joseph",
        "Quebec", "G1B 4R8", "418-661-9099", new GregorianCalendar(
            1970, 0, 1).getTime(), "M", "Quebec", "Canada",
        "john.doe@nohost.net", "Canadienne");
    this.createTestCompte(personne, "jdoe", "123", true);
    this.createTestInfosSaison(personne, "12345", "12", this.utils
        .getCategories().getByCode("XSE", personne.getSexe()));

    personne = personnes.createPersonne("Deere", "John",
        "39 rue St-Joseph", "Quebec", "G1B 4R8", "418-661-9099",
        new GregorianCalendar(1972, 3, 1).getTime(), "M", "Quebec",
        "Canada", "john.deere@nohost.net", "Canadienne");
    this.createTestCompte(personne, "jdeere", "123", false);
    this.createTestInfosSaison(personne, "42545", "3021", this.utils
        .getCategories().getByCode("XSS", personne.getSexe()));

    personne = personnes.createPersonne("Knüssen", "Olaf",
        "34 Parker Street ", "Pittsfield", "01201", "418-661-9099",
        new GregorianCalendar(1967, 2, 31).getTime(), "M", "MA", "USA",
        "olli@coldmail.com", "Canadienne");
    this.createTestCompte(personne, "oknussen", "123", false);
    this.createTestInfosSaison(personne, "42546", "3022", this.utils
        .getCategories().getByCode("XSS", personne.getSexe()));

    personne = personnes.createPersonne("Côté", "Nathalie",
        "693 Boul. Trudel", "St-Boniface-de-Shawinigan", "H9B 7A1",
        "418-661-9099", new GregorianCalendar(1980, 5, 1).getTime(),
        "F", "Qc", "CAN", "nathalie@karamail.com", "Canadienne");
    this.createTestCompte(personne, "ncote", "123", false);
    this.createTestInfosSaison(personne, "42543", "3023", this.utils
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.