Subversion Repositories eFlore/Applications.del

Rev

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

Rev 359 Rev 360
Line 318... Line 318...
318
	@Override
318
	@Override
319
	public List<VoteProtocole> getVoteByImageAndProtocol(String idImage, String protocolName) {
319
	public List<VoteProtocole> getVoteByImageAndProtocol(String idImage, String protocolName) {
Line 320... Line 320...
320
 
320
 
Line 321... Line 321...
321
		List<VoteProtocole> voteProtocolesLocal = new ArrayList<VoteProtocole>();
321
		List<VoteProtocole> voteProtocolesLocal = new ArrayList<VoteProtocole>();
322
 
322
 
323
		for (Image image : images) {
323
		// for (Image image : images) {
324
			if (image.getIdImage().equals(idImage)) {
324
		// if (image.getIdImage().equals(idImage)) {
325
				for (VoteProtocole voteProtocole : image.getVoteProtocoles()) {
325
		// for (VoteProtocole voteProtocole : image.getVoteProtocoles()) {
-
 
326
		// if (voteProtocole.getProtocole().getNom().equals(protocolName)) {
326
					if (voteProtocole.getProtocole().getNom().equals(protocolName)) {
327
		// voteProtocolesLocal.add(voteProtocole);
327
						voteProtocolesLocal.add(voteProtocole);
328
		// }
328
					}
329
		// }
-
 
330
		// }
-
 
331
		//
-
 
332
		// }
-
 
333
 
-
 
334
		if (protocolName.equals(Protocole.ESTHETISME)) {
-
 
335
 
-
 
336
			VoteProtocole voteProtocole = new VoteProtocole();
-
 
337
			voteProtocole.setProtocole(protocoles.get(0));
-
 
338
			voteProtocole.setVote(3);
-
 
339
			voteProtocole.setContributeur("aurelien");
-
 
340
			voteProtocole.setDate(new Date());
-
 
341
 
-
 
342
			VoteProtocole voteProtocole2 = new VoteProtocole();
-
 
343
			voteProtocole2.setProtocole(protocoles.get(0));
-
 
344
			voteProtocole2.setVote(2);
Line -... Line 345...
-
 
345
			voteProtocole2.setContributeur("jpm");
-
 
346
			voteProtocole2.setDate(new Date());
-
 
347
 
-
 
348
			voteProtocolesLocal.add(voteProtocole);
-
 
349
			voteProtocolesLocal.add(voteProtocole2);
-
 
350
		}
-
 
351
 
-
 
352
		else if (protocolName.equals(Protocole.IDENTIFICATION_AUTOMATIQUE)) {
-
 
353
 
-
 
354
			VoteProtocole voteProtocole = new VoteProtocole();
-
 
355
			voteProtocole.setProtocole(protocoles.get(0));
-
 
356
			voteProtocole.setVote(5);
-
 
357
			voteProtocole.setContributeur("ben");
-
 
358
			voteProtocole.setDate(new Date());
-
 
359
 
-
 
360
			VoteProtocole voteProtocole2 = new VoteProtocole();
-
 
361
			voteProtocole2.setProtocole(protocoles.get(0));
-
 
362
			voteProtocole2.setVote(5);
-
 
363
			voteProtocole2.setContributeur("greg");
-
 
364
			voteProtocole2.setDate(new Date());
329
				}
365
 
330
			}
366
			voteProtocolesLocal.add(voteProtocole);
331
 
367
			voteProtocolesLocal.add(voteProtocole2);
Line 332... Line 368...
332
		}
368
		}
Line 392... Line 428...
392
	}
428
	}
Line 393... Line 429...
393
 
429
 
394
	@Override
430
	@Override
395
	public void getImagesEfloreParTaxon(String nomTaxon, ImagesParTaxonCallback callback) {
431
	public void getImagesEfloreParTaxon(String nomTaxon, ImagesParTaxonCallback callback) {
396
		// TODO Auto-generated method stub
432
		// TODO Auto-generated method stub
397
		
433
 
Line 398... Line 434...
398
	}
434
	}
399
 
435
 
400
	@Override
436
	@Override
401
	public void getImagesParTaxon(InformationsRecherche informationsRecherche, int debut, int fin, ImagesParTaxonCallback callback) {
437
	public void getImagesParTaxon(InformationsRecherche informationsRecherche, int debut, int fin, ImagesParTaxonCallback callback) {
402
		// TODO Auto-generated method stub
438
		// TODO Auto-generated method stub
Line 403... Line 439...
403
		
439