| Line 2... |
Line 2... |
| 2 |
|
2 |
|
| 3 |
import java.util.Iterator;
|
3 |
import java.util.Iterator;
|
| Line 4... |
Line 4... |
| 4 |
import java.util.List;
|
4 |
import java.util.List;
|
| - |
|
5 |
|
| 5 |
|
6 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
| 6 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
7 |
import org.tela_botanica.client.modeles.Collection;
|
| 7 |
import org.tela_botanica.client.modeles.Personne;
|
8 |
import org.tela_botanica.client.modeles.Personne;
|
| 8 |
import org.tela_botanica.client.modeles.PersonneAsyncDao;
|
9 |
import org.tela_botanica.client.modeles.PersonneAsyncDao;
|
| 9 |
import org.tela_botanica.client.modeles.ProjetAsyncDao;
|
10 |
import org.tela_botanica.client.modeles.ProjetAsyncDao;
|
| Line 16... |
Line 17... |
| 16 |
import org.tela_botanica.client.modeles.StructureConservation;
|
17 |
import org.tela_botanica.client.modeles.StructureConservation;
|
| 17 |
import org.tela_botanica.client.modeles.StructureValorisation;
|
18 |
import org.tela_botanica.client.modeles.StructureValorisation;
|
| 18 |
import org.tela_botanica.client.modeles.Utilisateur;
|
19 |
import org.tela_botanica.client.modeles.Utilisateur;
|
| 19 |
import org.tela_botanica.client.modeles.UtilisateurAsyncDao;
|
20 |
import org.tela_botanica.client.modeles.UtilisateurAsyncDao;
|
| 20 |
import org.tela_botanica.client.modeles.ValeurListeAsyncDao;
|
21 |
import org.tela_botanica.client.modeles.ValeurListeAsyncDao;
|
| - |
|
22 |
import org.tela_botanica.client.vues.ContenuVue;
|
| Line 21... |
Line 23... |
| 21 |
|
23 |
|
| 22 |
import com.extjs.gxt.ui.client.Registry;
|
24 |
import com.extjs.gxt.ui.client.Registry;
|
| Line 23... |
Line 25... |
| 23 |
import com.google.gwt.core.client.GWT;
|
25 |
import com.google.gwt.core.client.GWT;
|
| Line 63... |
Line 65... |
| 63 |
|
65 |
|
| 64 |
public void deconnecterUtilisateur(Rafraichissable vue) {
|
66 |
public void deconnecterUtilisateur(Rafraichissable vue) {
|
| 65 |
UtilisateurAsyncDao uDao = new UtilisateurAsyncDao(vue);
|
67 |
UtilisateurAsyncDao uDao = new UtilisateurAsyncDao(vue);
|
| 66 |
uDao.deconnecterUtilisateur();
|
68 |
uDao.deconnecterUtilisateur();
|
| - |
|
69 |
}
|
| - |
|
70 |
|
| - |
|
71 |
//+----------------------------------------------------------------------------------------------------------------+
|
| - |
|
72 |
// GESTION DES PROJETS
|
| Line -... |
Line 73... |
| - |
|
73 |
//+----------------------------------------------------------------------------------------------------------------+
|
| - |
|
74 |
|
| - |
|
75 |
public void selectionnerProjets(Rafraichissable vue) {
|
| - |
|
76 |
ProjetAsyncDao projetsDao = new ProjetAsyncDao(vue);
|
| - |
|
77 |
projetsDao.selectionner();
|
| 67 |
}
|
78 |
}
|
| 68 |
|
79 |
|
| 69 |
//+----------------------------------------------------------------------------------------------------------------+
|
80 |
//+----------------------------------------------------------------------------------------------------------------+
|
| Line 70... |
Line 81... |
| 70 |
// GESTION DES STRUCTURES
|
81 |
// GESTION DES STRUCTURES
|
| Line 123... |
Line 134... |
| 123 |
|
134 |
|
| 124 |
public void supprimerStructureAPersonne(Rafraichissable vue, String utilisateurId, String personnelId) {
|
135 |
public void supprimerStructureAPersonne(Rafraichissable vue, String utilisateurId, String personnelId) {
|
| 125 |
StructureAPersonneAsyncDao structureAPersonneDao = new StructureAPersonneAsyncDao();
|
136 |
StructureAPersonneAsyncDao structureAPersonneDao = new StructureAPersonneAsyncDao();
|
| 126 |
structureAPersonneDao.supprimer(vue, utilisateurId, personnelId);
|
137 |
structureAPersonneDao.supprimer(vue, utilisateurId, personnelId);
|
| 127 |
}
|
138 |
}
|
| 128 |
|
139 |
|
| 129 |
//+----------------------------------------------------------------------------------------------------------------+
|
140 |
//+----------------------------------------------------------------------------------------------------------------+
|
| 130 |
// GESTION DES PROJETS
|
141 |
// GESTION DES COLLECTIONS
|
| Line -... |
Line 142... |
| - |
|
142 |
//+----------------------------------------------------------------------------------------------------------------+
|
| - |
|
143 |
|
| - |
|
144 |
public void selectionnerCollection(Rafraichissable vueARafraichir, String projetId, String collectionId) {
|
| - |
|
145 |
|
| - |
|
146 |
}
|
| - |
|
147 |
|
| - |
|
148 |
public void ajouterCollection(Rafraichissable vueARafraichir,
|
| - |
|
149 |
String utilisateurId, Collection collection) {
|
| - |
|
150 |
// TODO Auto-generated method stub
|
| - |
|
151 |
|
| 131 |
//+----------------------------------------------------------------------------------------------------------------+
|
152 |
}
|
| 132 |
|
153 |
|
| 133 |
public void selectionnerProjets(Rafraichissable vue) {
|
154 |
public void modifierCollection(Rafraichissable vueARafraichir,
|
| - |
|
155 |
String utilisateurId, Collection collection) {
|
| 134 |
ProjetAsyncDao projetsDao = new ProjetAsyncDao(vue);
|
156 |
// TODO Auto-generated method stub
|
| Line -... |
Line 157... |
| - |
|
157 |
|
| - |
|
158 |
}
|
| - |
|
159 |
|
| - |
|
160 |
public void supprimerCollection(Rafraichissable vueARafraichir,
|
| - |
|
161 |
String utilisateurId, String identifiantsCollectionSepareParVirgule) {
|
| - |
|
162 |
// TODO Auto-generated method stub
|
| 135 |
projetsDao.selectionner();
|
163 |
|
| 136 |
}
|
164 |
}
|
| 137 |
|
165 |
|
| Line 138... |
Line 166... |
| 138 |
//+----------------------------------------------------------------------------------------------------------------+
|
166 |
//+----------------------------------------------------------------------------------------------------------------+
|
| Line 157... |
Line 185... |
| 157 |
|
185 |
|
| 158 |
public void modifierPersonne(Rafraichissable vue, Personne personne) {
|
186 |
public void modifierPersonne(Rafraichissable vue, Personne personne) {
|
| 159 |
PersonneAsyncDao personneDao = new PersonneAsyncDao(vue);
|
187 |
PersonneAsyncDao personneDao = new PersonneAsyncDao(vue);
|
| 160 |
personneDao.modifier(vue, personne);
|
188 |
personneDao.modifier(vue, personne);
|
| 161 |
}
|
- |
|
| 162 |
|
189 |
}
|
| 163 |
|
190 |
|
| 164 |
//+----------------------------------------------------------------------------------------------------------------+
|
191 |
//+----------------------------------------------------------------------------------------------------------------+
|
| 165 |
// GESTION DES PUBLICATIONS
|
192 |
// GESTION DES PUBLICATIONS
|
| Line 166... |
Line 193... |
| 166 |
//+----------------------------------------------------------------------------------------------------------------+
|
193 |
//+----------------------------------------------------------------------------------------------------------------+
|