FiltroRicercaTracceConPaginazione.java

  1. /*
  2.  * GovWay - A customizable API Gateway
  3.  * https://govway.org
  4.  *
  5.  * Copyright (c) 2005-2025 Link.it srl (https://link.it).
  6.  *
  7.  * This program is free software: you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License version 3, as published by
  9.  * the Free Software Foundation.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18.  *
  19.  */



  20. package org.openspcoop2.protocol.sdk.tracciamento;

  21. import java.io.Serializable;

  22. /**
  23.  * Oggetto contenente informazioni per la ricerca di loggedEntry
  24.  *
  25.  * @author Stefano Corallo (corallo@link.it)
  26.  * @author Lorenzo Nardi (nardi@link.it)
  27. * @author $Author$
  28. * @version $Rev$, $Date$
  29.  */

  30. public class FiltroRicercaTracceConPaginazione extends FiltroRicercaTracce implements Serializable{


  31.     private static final long serialVersionUID = 2103096411857601491L;
  32.    
  33.     protected int limit;
  34.     protected int offset;
  35.     protected boolean asc = true;

  36.        
  37.     public FiltroRicercaTracceConPaginazione() {
  38.         super();
  39.     }
  40.     public FiltroRicercaTracceConPaginazione(FiltroRicercaTracce filtroTracce) {
  41.         super();
  42.        
  43.         this.maxDate = filtroTracce.maxDate;
  44.         this.minDate = filtroTracce.minDate;

  45.         this.tipoTraccia = filtroTracce.tipoTraccia;
  46.         this.tipoPdD = filtroTracce.tipoPdD;
  47.         this.dominio = filtroTracce.dominio;

  48.         this.idBusta = filtroTracce.idBusta;
  49.         this.idBustaRichiesta = filtroTracce.idBustaRichiesta;
  50.         this.idBustaRisposta = filtroTracce.idBustaRisposta;
  51.         this.riferimentoMessaggio = filtroTracce.riferimentoMessaggio;
  52.         this.ricercaSoloBusteErrore = filtroTracce.ricercaSoloBusteErrore;
  53.         this.informazioniProtocollo = filtroTracce.informazioniProtocollo;

  54.         this.servizioApplicativoFruitore = filtroTracce.servizioApplicativoFruitore;
  55.         this.servizioApplicativoErogatore = filtroTracce.servizioApplicativoErogatore;

  56.         this.idCorrelazioneApplicativa = filtroTracce.idCorrelazioneApplicativa;
  57.         this.idCorrelazioneApplicativaRisposta = filtroTracce.idCorrelazioneApplicativaRisposta;
  58.         this.idCorrelazioneApplicativaOrMatch = filtroTracce.idCorrelazioneApplicativaOrMatch;

  59.         this.protocollo = filtroTracce.protocollo;

  60.         this.properties = filtroTracce.properties;
  61.     }
  62.    
  63.    
  64.     public int getOffset() {
  65.         return this.offset;
  66.     }
  67.     public void setOffset(int offset) {
  68.         this.offset = offset;
  69.     }
  70.     public int getLimit() {
  71.         return this.limit;
  72.     }
  73.     public void setLimit(int limit) {
  74.         this.limit = limit;
  75.     }
  76.     public boolean isAsc() {
  77.         return this.asc;
  78.     }

  79.     public void setAsc(boolean asc) {
  80.         this.asc = asc;
  81.     }
  82.    
  83.     @Override
  84.     public String toString() {  
  85.         return super.toString() + " " +  
  86.             " offset ["+this.offset+"]" +
  87.             " limit  ["+this.limit+"]" +
  88.             " asc  ["+this.asc+"]";
  89.     }

  90.  
  91. }