Line 31... |
Line 31... |
31 |
import org.tela_botanica.client.modeles.structure.StructureAPersonneAsyncDao;
|
31 |
import org.tela_botanica.client.modeles.structure.StructureAPersonneAsyncDao;
|
32 |
import org.tela_botanica.client.modeles.structure.StructureAsyncDao;
|
32 |
import org.tela_botanica.client.modeles.structure.StructureAsyncDao;
|
33 |
import org.tela_botanica.client.modeles.structure.StructureConservation;
|
33 |
import org.tela_botanica.client.modeles.structure.StructureConservation;
|
34 |
import org.tela_botanica.client.modeles.structure.StructureValorisation;
|
34 |
import org.tela_botanica.client.modeles.structure.StructureValorisation;
|
35 |
import org.tela_botanica.client.synchronisation.Sequenceur;
|
35 |
import org.tela_botanica.client.synchronisation.Sequenceur;
|
- |
|
36 |
import org.tela_botanica.client.util.Analytics;
|
36 |
import org.tela_botanica.client.util.Debug;
|
37 |
import org.tela_botanica.client.util.Debug;
|
Line 37... |
Line 38... |
37 |
|
38 |
|
38 |
import com.extjs.gxt.ui.client.Registry;
|
39 |
import com.extjs.gxt.ui.client.Registry;
|
39 |
import com.google.gwt.core.client.GWT;
|
40 |
import com.google.gwt.core.client.GWT;
|
Line 197... |
Line 198... |
197 |
}
|
198 |
}
|
Line 198... |
Line 199... |
198 |
|
199 |
|
199 |
public void ajouterCollection(Rafraichissable vueARafraichir, Collection collection) {
|
200 |
public void ajouterCollection(Rafraichissable vueARafraichir, Collection collection) {
|
200 |
CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
|
201 |
CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
|
- |
|
202 |
cDao.ajouter(collection);
|
201 |
cDao.ajouter(collection);
|
203 |
Analytics.evenement("collection", "ajout", "{'nom': '" + collection.getNom() + "'}");
|
Line 202... |
Line 204... |
202 |
}
|
204 |
}
|
203 |
|
205 |
|
204 |
public void modifierCollection(Rafraichissable vueARafraichir, Collection collection) {
|
206 |
public void modifierCollection(Rafraichissable vueARafraichir, Collection collection) {
|
- |
|
207 |
CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
|
205 |
CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
|
208 |
cDao.modifier(collection);
|
Line 206... |
Line 209... |
206 |
cDao.modifier(collection);
|
209 |
Analytics.evenement("collection", "modification", "{'nom': '" + collection.getNom() + "'}");
|
207 |
}
|
210 |
}
|
208 |
|
211 |
|
- |
|
212 |
public void supprimerCollection(Rafraichissable vueARafraichir, String identifiantsCollectionSepareParVirgule) {
|
- |
|
213 |
CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
|
209 |
public void supprimerCollection(Rafraichissable vueARafraichir, String identifiantsCollectionSepareParVirgule) {
|
214 |
cDao.supprimer(identifiantsCollectionSepareParVirgule);
|
Line 210... |
Line 215... |
210 |
CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
|
215 |
int nombreDeCollectionsSupprimees = identifiantsCollectionSepareParVirgule.split(",").length;
|
211 |
cDao.supprimer(identifiantsCollectionSepareParVirgule);
|
216 |
Analytics.evenement("collection", "suppression", "{'identifiants': '[" + identifiantsCollectionSepareParVirgule + "]'}", nombreDeCollectionsSupprimees);
|
212 |
}
|
217 |
}
|