Subversion Repositories eFlore/Applications.cel

Rev

Rev 140 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 140 Rev 142
Line 197... Line 197...
197
	/**
197
	/**
198
	 * Appelle le DAO d'upload qui va choisir la methode d'upload adaptée et
198
	 * Appelle le DAO d'upload qui va choisir la methode d'upload adaptée et
199
	 * lancer l'interface appropriée
199
	 * lancer l'interface appropriée
200
	 */
200
	 */
201
	@SuppressWarnings("static-access")
201
	@SuppressWarnings("static-access")
202
	public void uploaderImages() {
202
	public void uploaderImages(boolean multiple) {
203
		ImageUploaderAsynchroneDAO IuADaO = new ImageUploaderAsynchroneDAO(this);
203
		ImageUploaderAsynchroneDAO IuADaO = new ImageUploaderAsynchroneDAO(this);
-
 
204
		if(multiple) {
-
 
205
			IuADaO.appelerUploadMultiple();
-
 
206
		}
-
 
207
		else 
-
 
208
		{
204
		IuADaO.choisirMethodeUpload();
209
			IuADaO.appelerUploadSimple();
-
 
210
		}
205
	}
211
	}
Line 206... Line 212...
206
 
212
 
207
	/**
213
	/**
208
	 * Met à jour la liste des images à partir d'un objet
214
	 * Met à jour la liste des images à partir d'un objet
Line 816... Line 822...
816
	 *            les identifiants des images à ajouter
822
	 *            les identifiants des images à ajouter
817
	 */
823
	 */
818
	public void ajouterImagesSelection(String[] ids) {
824
	public void ajouterImagesSelection(String[] ids) {
Line 819... Line 825...
819
 
825
 
820
		for (int i = 0; i < ids.length; i++) {
826
		for (int i = 0; i < ids.length; i++) {
-
 
827
			
821
 
828
			String idImg = cacheImage.get(ids[i]).getId();
822
			selectionImages.add(ids[i]);
829
			selectionImages.add(idImg);
823
		}
830
		}
Line 824... Line 831...
824
	}
831
	}
825
 
832