controleurs
Class ControleurRepertoire

java.lang.Object
  extended by controleurs.ControleurRepertoire

public class ControleurRepertoire
extends java.lang.Object

Controleur associe a la fonction repertoire du programme

Author:
erik helsens

Constructor Summary
ControleurRepertoire(PanelRepertoire v, org.xmldb.api.modules.XPathQueryService s, org.xmldb.api.base.Collection c)
          Contructeur du controleur du repertoire
 
Method Summary
 void addContact(ContactFull c)
          Ajoute un contact
 void editContact(ContactFull c)
          Edite un contact
 ContactFull getContactAffiche()
           
 ListeContact getContacts()
          Retourne la liste de contacts
 boolean removeContact(java.lang.String id)
          Enleve un contact
 void requestAllContacts()
          Effectue une requete sur tous les contacts pour initialiser la liste
 void requestOneContact(java.lang.String id)
          Effectue une requete sur un contact a partir de son id
 void searchContacts(java.lang.String nom, java.lang.String prenom)
          Effectue une requete sur tous les contacts pour initialiser la liste
 void setContactAffiche(ContactFull contactAffiche)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControleurRepertoire

public ControleurRepertoire(PanelRepertoire v,
                            org.xmldb.api.modules.XPathQueryService s,
                            org.xmldb.api.base.Collection c)
Contructeur du controleur du repertoire

Parameters:
v - la vue du repertoire
s - le service effectuant les requetes dans eXist
c - le projet XML dans eXist
Method Detail

requestAllContacts

public void requestAllContacts()
                        throws org.xmldb.api.base.XMLDBException,
                               org.xml.sax.SAXException,
                               java.io.IOException
Effectue une requete sur tous les contacts pour initialiser la liste

Throws:
org.xmldb.api.base.XMLDBException
org.xml.sax.SAXException
java.io.IOException

requestOneContact

public void requestOneContact(java.lang.String id)
                       throws org.xmldb.api.base.XMLDBException,
                              org.xml.sax.SAXException,
                              java.io.IOException
Effectue une requete sur un contact a partir de son id

Parameters:
id - l'identifiant du contact recherche
Throws:
org.xmldb.api.base.XMLDBException
org.xml.sax.SAXException
java.io.IOException

searchContacts

public void searchContacts(java.lang.String nom,
                           java.lang.String prenom)
                    throws org.xmldb.api.base.XMLDBException,
                           org.xml.sax.SAXException,
                           java.io.IOException
Effectue une requete sur tous les contacts pour initialiser la liste

Throws:
org.xmldb.api.base.XMLDBException
org.xml.sax.SAXException
java.io.IOException

addContact

public void addContact(ContactFull c)
                throws org.xmldb.api.base.XMLDBException,
                       org.xml.sax.SAXException,
                       java.io.IOException
Ajoute un contact

Parameters:
c - le contact a ajouter
Throws:
org.xmldb.api.base.XMLDBException
org.xml.sax.SAXException
java.io.IOException

editContact

public void editContact(ContactFull c)
                 throws org.xmldb.api.base.XMLDBException,
                        org.xml.sax.SAXException,
                        java.io.IOException
Edite un contact

Parameters:
c - le contact a editer
Throws:
org.xmldb.api.base.XMLDBException
org.xml.sax.SAXException
java.io.IOException

removeContact

public boolean removeContact(java.lang.String id)
                      throws org.xmldb.api.base.XMLDBException,
                             org.xml.sax.SAXException,
                             java.io.IOException
Enleve un contact

Parameters:
id - l'id du contact a enlever
Throws:
org.xmldb.api.base.XMLDBException
org.xml.sax.SAXException
java.io.IOException

getContacts

public ListeContact getContacts()
Retourne la liste de contacts


getContactAffiche

public ContactFull getContactAffiche()

setContactAffiche

public void setContactAffiche(ContactFull contactAffiche)