Rev 178 | Rev 226 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
package org.tela_botanica.del.client.cache;
import java.util.List;
import org.tela_botanica.del.client.modeles.Image;
import org.tela_botanica.del.client.modeles.Observation;
import org.tela_botanica.del.client.modeles.Protocole;
public class CacheClient {
private Observation currentObservation;
private Image imageCourante;
private String taxonPourRechercheEflore;
private Protocole protocoleCourant;
private List<Image> images;
private int numPageRechercheImage = 0;
private int pasPageRechercheImage = 10;
private static CacheClient instance;
private CacheClient() {
instance = this;
}
public Observation getCurrentObservation() {
return currentObservation;
}
public void setCurrentObservation(Observation currentObservation) {
this.currentObservation = currentObservation;
}
public static CacheClient getInstance() {
if (instance == null) {
instance = new CacheClient();
}
return instance;
}
public String getTaxonPourRechercheEflore() {
return taxonPourRechercheEflore;
}
public void setTaxonPourRechercheEflore(String taxonPourRechercheEflore) {
this.taxonPourRechercheEflore = taxonPourRechercheEflore;
}
public int getNumPageRechercheImage() {
return numPageRechercheImage;
}
public void setNumPageRechercheImage(int numPageRechercheImage) {
this.numPageRechercheImage = numPageRechercheImage;
}
public int getPasPageRechercheImage() {
return pasPageRechercheImage;
}
public void setPasPageRechercheImage(int pasPageRechercheImage) {
this.pasPageRechercheImage = pasPageRechercheImage;
}
public List<Image> getImages() {
return images;
}
public void setImages(List<Image> images) {
this.images = images;
}
public Image getImageCourante() {
return imageCourante;
}
public void setImageCourante(Image imageCourante) {
this.imageCourante = imageCourante;
}
public Protocole getProtocoleCourant() {
return protocoleCourant;
}
public void setProtocoleCourant(Protocole protocoleCourant) {
this.protocoleCourant = protocoleCourant;
}
}