Line 7... |
Line 7... |
7 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
7 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
8 |
import org.tela_botanica.client.modeles.Configuration;
|
8 |
import org.tela_botanica.client.modeles.Configuration;
|
9 |
import org.tela_botanica.client.modeles.ImageAsynchroneDAO;
|
9 |
import org.tela_botanica.client.modeles.ImageAsynchroneDAO;
|
10 |
import org.tela_botanica.client.modeles.ImageCarnet;
|
10 |
import org.tela_botanica.client.modeles.ImageCarnet;
|
11 |
import org.tela_botanica.client.modeles.ImageUploaderAsynchroneDAO;
|
11 |
import org.tela_botanica.client.modeles.ImageUploaderAsynchroneDAO;
|
- |
|
12 |
import org.tela_botanica.client.modeles.LiaisonMotsClesImageAsynchroneDAO;
|
12 |
import org.tela_botanica.client.modeles.LienImageAsynchroneDAO;
|
13 |
import org.tela_botanica.client.modeles.LienImageAsynchroneDAO;
|
13 |
import org.tela_botanica.client.modeles.ListeDateImageAsynchroneDAO;
|
14 |
import org.tela_botanica.client.modeles.ListeDateImageAsynchroneDAO;
|
14 |
import org.tela_botanica.client.modeles.ListeImageAsynchroneDAO;
|
15 |
import org.tela_botanica.client.modeles.ListeImageAsynchroneDAO;
|
15 |
import org.tela_botanica.client.modeles.ListeImageCarnet;
|
16 |
import org.tela_botanica.client.modeles.ListeImageCarnet;
|
16 |
import org.tela_botanica.client.modeles.ListeObservation;
|
17 |
import org.tela_botanica.client.modeles.ListeObservation;
|
17 |
import org.tela_botanica.client.modeles.ListeObservationAsynchroneDAO;
|
18 |
import org.tela_botanica.client.modeles.ListeObservationAsynchroneDAO;
|
18 |
import org.tela_botanica.client.modeles.MotsClesAsynchroneDAO;
|
19 |
import org.tela_botanica.client.modeles.MotsClesAsynchroneDAO;
|
19 |
import org.tela_botanica.client.modeles.NombreImageAsynchroneDAO;
|
20 |
import org.tela_botanica.client.modeles.NombreImageAsynchroneDAO;
|
20 |
import org.tela_botanica.client.modeles.NombreObservationAsynchroneDAO;
|
21 |
import org.tela_botanica.client.modeles.NombreObservationAsynchroneDAO;
|
- |
|
22 |
import org.tela_botanica.client.modeles.Utilisateur;
|
Line 21... |
Line 23... |
21 |
|
23 |
|
22 |
import com.google.gwt.json.client.JSONArray;
|
24 |
import com.google.gwt.json.client.JSONArray;
|
23 |
import com.google.gwt.json.client.JSONObject;
|
25 |
import com.google.gwt.json.client.JSONObject;
|
24 |
import com.google.gwt.user.client.Window;
|
26 |
import com.google.gwt.user.client.Window;
|
Line 579... |
Line 581... |
579 |
* @param arbreMC
|
581 |
* @param arbreMC
|
580 |
* l'arbre de mots clés en cours
|
582 |
* l'arbre de mots clés en cours
|
581 |
*/
|
583 |
*/
|
582 |
public void mettreAjourMotsCles(String[] ids, String motsClesEnCours,
|
584 |
public void mettreAjourMotsCles(String[] ids, String motsClesEnCours,
|
583 |
com.gwtext.client.data.Tree arbreMC) {
|
585 |
com.gwtext.client.data.Tree arbreMC) {
|
- |
|
586 |
|
- |
|
587 |
String idImgs = "";
|
584 |
for (int i = 0; i < ids.length; i++) {
|
588 |
for (int i = 0; i < ids.length; i++) {
|
585 |
if (cacheImage.containsKey(ids[i])) {
|
589 |
if (cacheImage.containsKey(ids[i])) {
|
586 |
ImageCarnet ic = (ImageCarnet) cacheImage.get(ids[i]);
|
590 |
ImageCarnet ic = (ImageCarnet) cacheImage.get(ids[i]);
|
587 |
ic.mettreAjourMotsCles(motsClesEnCours);
|
591 |
ic.mettreAjourMotsCles(motsClesEnCours);
|
588 |
|
- |
|
589 |
ImageAsynchroneDAO imgDao = new ImageAsynchroneDAO(this);
|
- |
|
590 |
imgDao.SynchroniserMotsClesImageBaseDeDonnees(ic);
|
- |
|
591 |
}
|
592 |
}
|
- |
|
593 |
|
- |
|
594 |
idImgs += ids[i];
|
- |
|
595 |
idImgs += (i < (ids.length - 1)) ? ",": "";
|
592 |
}
|
596 |
}
|
- |
|
597 |
|
- |
|
598 |
LiaisonMotsClesImageAsynchroneDAO liMcDao = new LiaisonMotsClesImageAsynchroneDAO(this);
|
- |
|
599 |
liMcDao.modifier(this, Utilisateur.getInstance().getIdentifiantUtilisateurConsulte(), idImgs, motsClesEnCours);
|
Line 593... |
Line 600... |
593 |
|
600 |
|
594 |
rafraichirArbreMotsCles(arbreMC);
|
601 |
rafraichirArbreMotsCles(arbreMC);
|
Line 595... |
Line 602... |
595 |
}
|
602 |
}
|