Subversion Repositories eFlore/Applications.del

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
9 benjamin 1
package org.tela_botanica.del.client.cache;
2
 
147 benjamin 3
import java.util.List;
4
 
5
import org.tela_botanica.del.client.modeles.Image;
9 benjamin 6
import org.tela_botanica.del.client.modeles.Observation;
7
 
14 benjamin 8
public class CacheClient {
9 benjamin 9
 
10
	private Observation currentObservation;
73 benjamin 11
 
147 benjamin 12
	private Image imageCourante;
13
 
73 benjamin 14
	private String taxonPourRechercheEflore;
9 benjamin 15
 
147 benjamin 16
	private List<Image> images;
17
 
18
	private int numPageRechercheImage = 0;
19
 
20
	private int pasPageRechercheImage = 10;
21
 
14 benjamin 22
	private static CacheClient instance;
9 benjamin 23
 
14 benjamin 24
	private CacheClient() {
9 benjamin 25
		instance = this;
26
	}
27
 
14 benjamin 28
	public Observation getCurrentObservation() {
9 benjamin 29
		return currentObservation;
30
	}
31
 
14 benjamin 32
	public void setCurrentObservation(Observation currentObservation) {
9 benjamin 33
		this.currentObservation = currentObservation;
34
	}
35
 
14 benjamin 36
	public static CacheClient getInstance() {
9 benjamin 37
		if (instance == null) {
14 benjamin 38
			instance = new CacheClient();
9 benjamin 39
		}
40
		return instance;
41
	}
42
 
73 benjamin 43
	public String getTaxonPourRechercheEflore() {
44
		return taxonPourRechercheEflore;
45
	}
46
 
47
	public void setTaxonPourRechercheEflore(String taxonPourRechercheEflore) {
48
		this.taxonPourRechercheEflore = taxonPourRechercheEflore;
49
	}
50
 
147 benjamin 51
	public int getNumPageRechercheImage() {
52
		return numPageRechercheImage;
53
	}
54
 
55
	public void setNumPageRechercheImage(int numPageRechercheImage) {
56
		this.numPageRechercheImage = numPageRechercheImage;
57
	}
58
 
59
	public int getPasPageRechercheImage() {
60
		return pasPageRechercheImage;
61
	}
62
 
63
	public void setPasPageRechercheImage(int pasPageRechercheImage) {
64
		this.pasPageRechercheImage = pasPageRechercheImage;
65
	}
66
 
67
	public List<Image> getImages() {
68
		return images;
69
	}
70
 
71
	public void setImages(List<Image> images) {
72
		this.images = images;
73
	}
74
 
75
	public Image getImageCourante() {
76
		return imageCourante;
77
	}
78
 
79
	public void setImageCourante(Image imageCourante) {
80
		this.imageCourante = imageCourante;
81
	}
82
 
9 benjamin 83
}