Subversion Repositories eFlore/Applications.del

Rev

Rev 361 | Rev 467 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

package org.tela_botanica.del.client.cache;

import org.tela_botanica.del.client.modeles.Image;
import org.tela_botanica.del.client.modeles.InformationsRecherche;
import org.tela_botanica.del.client.modeles.Observation;
import org.tela_botanica.del.client.modeles.Protocole;

public class CacheClient {

        private Observation observationCourante;
        private Image imageCourante;
        private String taxonPourRechercheEflore;
        private Protocole protocoleCourant;
        private int numPageRechercheImage = 0;
        private int nbTotalImagesRecherchees = 0;

        private int pasPagination = 10;
        private int pageCouranteRechercheImage = 1;
        private int pageCouranteRechercheObservations = 1;
        private InformationsRecherche informationsRechercheImage;
        private InformationsRecherche informationsRechercheObservation;

        private static CacheClient instance;

        private CacheClient() {
                instance = this;
        }

        public Observation getObservationCourante() {
                return observationCourante;
        }

        public void setObservationCourante(Observation observationCourante) {
                this.observationCourante = observationCourante;
        }

        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;
        }

        // Pour la recherche :
        public int getPasPagination() {
                return pasPagination;
        }

        public void setPasPagination(int pasPagination) {
                this.pasPagination = pasPagination;
        }

        public void setPageCouranteRechercheImages(int pageCouranteRecherche) {
                this.pageCouranteRechercheImage = pageCouranteRecherche;
        }

        public int getPageCouranteRechercheImage() {
                return this.pageCouranteRechercheImage;
        }

        public void setNbTotalImagesRecherchees(int nbTotalImagesRecherchees) {
                this.nbTotalImagesRecherchees = nbTotalImagesRecherchees;
        }

        public int getNbTotalImagesRecherchees() {
                return this.nbTotalImagesRecherchees;
        }

        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;
        }

        public InformationsRecherche getInformationsRechercheImage() {
                return informationsRechercheImage;
        }

        public InformationsRecherche getInformationsRechercheObservation() {
                return informationsRechercheObservation;
        }

        public void setInformationsRechercheImage(InformationsRecherche informationsRechercheImage) {
                this.informationsRechercheImage = informationsRechercheImage;
        }

        public void setInformationsRechercheObservation(InformationsRecherche informationsRechercheObservation) {
                this.informationsRechercheObservation = informationsRechercheObservation;
        }

        public int getPageCouranteRechercheObservations() {
                return pageCouranteRechercheObservations;
        }

        public void setPageCouranteRechercheObservations(int pageCouranteRechercheObservations) {
                this.pageCouranteRechercheObservations = pageCouranteRechercheObservations;
        }

}