Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 1762 → Rev 1763

/trunk/src/org/tela_botanica/client/Modele.java
21,8 → 21,6
import org.tela_botanica.client.modeles.commentaire.CommentaireAsyncDao;
import org.tela_botanica.client.modeles.personne.Personne;
import org.tela_botanica.client.modeles.personne.PersonneAsyncDao;
import org.tela_botanica.client.modeles.projet.Projet;
import org.tela_botanica.client.modeles.projet.ProjetAsyncDao;
import org.tela_botanica.client.modeles.publication.Publication;
import org.tela_botanica.client.modeles.publication.PublicationAPersonne;
import org.tela_botanica.client.modeles.publication.PublicationAPersonneAsyncDao;
117,49 → 115,25
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION DES PROJETS
//+----------------------------------------------------------------------------------------------------------------+
public void selectionnerProjet(Rafraichissable vueARafraichir, String projetId, String nom, int start, int nbElements, String formatRetour, boolean paginationProgressive, Integer seqId) {
ProjetAsyncDao pADAO = new ProjetAsyncDao(vueARafraichir);
pADAO.selectionner(paginationProgressive, projetId, nom, start, nbElements, formatRetour, seqId);
}
public void selectionnerProjet(Rafraichissable vueARafraichir, String recherche, int start, int nbElements, Integer seqId) {
ProjetAsyncDao pADAO = new ProjetAsyncDao(vueARafraichir);
pADAO.selectionner(true, null, recherche, start, nbElements, null, seqId);
}
 
public void ajouterProjet(Rafraichissable vueARafraichir, Projet projetCollecte) {
ProjetAsyncDao pADAO = new ProjetAsyncDao(vueARafraichir);
pADAO.ajouter(projetCollecte);
}
 
public void modifierProjet(Rafraichissable vueARafraichir, Projet projetCollecte) {
ProjetAsyncDao pADAO = new ProjetAsyncDao(vueARafraichir);
pADAO.modifier(projetCollecte);
}
 
//+----------------------------------------------------------------------------------------------------------------+
// GESTION DES STRUCTURES
//+----------------------------------------------------------------------------------------------------------------+
 
public void selectionnerStructure(Rafraichissable vueARafraichir, String projetId, String structureId, String nomStructure, int start, int nbElements, Integer seqId, boolean searchCity) {
public void selectionnerStructure(Rafraichissable vueARafraichir, String structureId, String nomStructure, int start, int nbElements, Integer seqId, boolean searchCity) {
// Gestion des données des tables coel_structure, coel_structure_conservation et coel_structure_valorisation
StructureAsyncDao sDao = new StructureAsyncDao(vueARafraichir);
sDao.selectionner(false, projetId, structureId, nomStructure, null, start, nbElements, seqId, searchCity);
sDao.selectionner(false, structureId, nomStructure, null, start, nbElements, seqId, searchCity);
}
public void selectionnerStructureAvecPaginationProgressive(Rafraichissable vueARafraichir, String projetId, String structureId, String nomStructure, String formatRetour, int start, int nbElements, Integer seqId, boolean searchCity) {
public void selectionnerStructureAvecPaginationProgressive(Rafraichissable vueARafraichir, String structureId, String nomStructure, String formatRetour, int start, int nbElements, Integer seqId, boolean searchCity) {
// Gestion des données des tables coel_structure, coel_structure_conservation et coel_structure_valorisation
StructureAsyncDao sDao = new StructureAsyncDao(vueARafraichir);
sDao.selectionner(true, projetId, structureId, nomStructure, formatRetour, start, nbElements, seqId, searchCity);
sDao.selectionner(true, structureId, nomStructure, formatRetour, start, nbElements, seqId, searchCity);
}
public void selectionnerStructure(Rafraichissable vueARafraichir, String recherche, int start, int nbElements, Integer seqId, boolean searchCity) {
// Gestion des données des tables coel_structure, coel_structure_conservation et coel_structure_valorisation
StructureAsyncDao sDao = new StructureAsyncDao(vueARafraichir);
sDao.selectionner(true, null, null, recherche, null, start, nbElements, seqId, searchCity);
sDao.selectionner(true, null, recherche, null, start, nbElements, seqId, searchCity);
}
/** Lance la creation d'une Structure
216,14 → 190,14
// GESTION DES COLLECTIONS
//+----------------------------------------------------------------------------------------------------------------+
public void selectionnerCollection(Rafraichissable vueARafraichir, String projetId, String collectionId, String nom, int start, int nbElements, Integer seqId) {
public void selectionnerCollection(Rafraichissable vueARafraichir, String collectionId, String nom, int start, int nbElements, Integer seqId) {
CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
cDao.selectionner(false, projetId, collectionId, nom, start, nbElements, seqId);
cDao.selectionner(false, collectionId, nom, start, nbElements, seqId);
}
public void selectionnerCollection(Rafraichissable vueARafraichir, String recherche, int start, int nbElements, Integer seqId) {
CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
cDao.selectionner(true, null, null, recherche, start, nbElements, seqId);
cDao.selectionner(true, null, recherche, start, nbElements, seqId);
}
public void ajouterCollection(Rafraichissable vueARafraichir, Collection collection) {
328,18 → 302,19
//+----------------------------------------------------------------------------------------------------------------+
// GESTION DES PERSONNES
//+----------------------------------------------------------------------------------------------------------------+
public void selectionnerPersonne(Rafraichissable vueARafraichir, String personneId, String projetId, String nomComplet, int start, int nbElements) {
selectionnerPersonne(vueARafraichir, personneId, projetId, nomComplet, start, nbElements, null);
public void selectionnerPersonne(Rafraichissable vueARafraichir, String personneId, String nomComplet, int start, int nbElements) {
selectionnerPersonne(vueARafraichir, personneId, nomComplet, start, nbElements, null);
}
public void selectionnerPersonne(Rafraichissable vueARafraichir, String personneId, String projetId, String nomComplet, int start, int nbElements, Integer seqId) {
public void selectionnerPersonne(Rafraichissable vueARafraichir, String personneId, String nomComplet, int start, int nbElements, Integer seqId) {
PersonneAsyncDao pDao = new PersonneAsyncDao(vueARafraichir);
pDao.selectionner(false, personneId, projetId, nomComplet, start, nbElements, seqId);
pDao.selectionner(false, personneId, nomComplet, start, nbElements, seqId);
}
public void selectionnerPersonne(Rafraichissable vueARafraichir, String recherche, int start, int nbElements, Integer seqId) {
PersonneAsyncDao pDao = new PersonneAsyncDao(vueARafraichir);
pDao.selectionner(true, null, null, recherche, start, nbElements, seqId);
pDao.selectionner(true, null, recherche, start, nbElements, seqId);
}
 
public void supprimerPersonne(Rafraichissable vueARafraichir, String idPersonneSepareParVirgule) {
361,14 → 336,14
// GESTION DES PUBLICATIONS
//+----------------------------------------------------------------------------------------------------------------+
public void selectionnerPublication(Rafraichissable vueARafraichir, String publicationId, String projetId, String nomComplet, int pageCourante, int nbElements, Integer seqId) {
public void selectionnerPublication(Rafraichissable vueARafraichir, String publicationId, String nomComplet, int pageCourante, int nbElements, Integer seqId) {
PublicationAsyncDao lsDao = new PublicationAsyncDao(vueARafraichir);
lsDao.selectionner(false, publicationId, projetId, nomComplet, pageCourante, nbElements, seqId);
lsDao.selectionner(false, publicationId, nomComplet, pageCourante, nbElements, seqId);
}
public void selectionnerPublication(Rafraichissable vueARafraichir, String recherche, int start, int nbElements, Integer seqId) {
PublicationAsyncDao lsDao = new PublicationAsyncDao(vueARafraichir);
lsDao.selectionner(true, null, null, recherche, start, nbElements, seqId);
lsDao.selectionner(true, null, recherche, start, nbElements, seqId);
}
public void modifierPublication(Rafraichissable vueRafraichir, Publication publication, Integer seqId) {
419,33 → 394,18
publicationAPersonneDao.supprimer(publicationsAPersonneId);
}
 
public void supprimerProjet(Rafraichissable vueARafraichir,
List<Projet> projetListe) {
String projetsId = "";
for(Iterator<Projet> it = projetListe.iterator(); it.hasNext();) {
Projet proj = it.next();
projetsId += proj.getId();
if(it.hasNext()) {
projetsId += ",";
}
}
ProjetAsyncDao pADAO = new ProjetAsyncDao(vueARafraichir);
pADAO.supprimer(projetsId);
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION DES COMMENTAIRES
//+----------------------------------------------------------------------------------------------------------------+
public void selectionnerCommentaire(Rafraichissable vueARafraichir, String commentaireId, String projetId, String titre, int pageCourante, int nbElements, Integer seqId) {
public void selectionnerCommentaire(Rafraichissable vueARafraichir, String commentaireId, String titre, int pageCourante, int nbElements, Integer seqId) {
CommentaireAsyncDao cDao = new CommentaireAsyncDao(vueARafraichir);
cDao.selectionner(false, commentaireId, projetId, titre, pageCourante, nbElements, seqId);
cDao.selectionner(false, commentaireId, titre, pageCourante, nbElements, seqId);
}
public void selectionnerCommentaire(Rafraichissable vueARafraichir, String recherche, int pageCourante, int nbElements, Integer seqId) {
CommentaireAsyncDao cDao = new CommentaireAsyncDao(vueARafraichir);
cDao.selectionner(true, null, null, recherche, pageCourante, nbElements, seqId);
cDao.selectionner(true, null, recherche, pageCourante, nbElements, seqId);
}
public void modifierCommentaire(Rafraichissable vueRafraichir, Commentaire commentaire) {