EventSearchContext.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.utils.logger.beans;

  21. import java.io.Serializable;
  22. import java.util.Date;

  23. import org.openspcoop2.utils.logger.constants.SortOrder;
  24. import org.openspcoop2.utils.logger.IEventSearchContext;
  25. import org.openspcoop2.utils.logger.constants.Severity;

  26. /**
  27.  * EventSearchContext
  28.  *
  29.  * @author Poli Andrea (apoli@link.it)
  30.  * @author $Author$
  31.  * @version $Rev$, $Date$
  32.  */
  33. public class EventSearchContext implements IEventSearchContext,Serializable {

  34.     /**
  35.      *
  36.      */
  37.     private static final long serialVersionUID = 1L;
  38.    
  39.     private Date leftIntervalDate;
  40.     private Date rightIntervalDate;
  41.     private String source;
  42.     private String code;
  43.     private Severity severity;
  44.     private IdentifierSearch correlationIdentifier;
  45.     private IdentifierSearch clusterId;
  46.     private IdentifierSearch configurationId;
  47.     private SortOrder sortOrder;
  48.        
  49.     @Override
  50.     public Date getLeftIntervalDate() {
  51.         return this.leftIntervalDate;
  52.     }
  53.     @Override
  54.     public void setLeftIntervalDate(Date leftIntervalDate) {
  55.         this.leftIntervalDate = leftIntervalDate;
  56.     }
  57.     @Override
  58.     public Date getRightIntervalDate() {
  59.         return this.rightIntervalDate;
  60.     }
  61.     @Override
  62.     public void setRightIntervalDate(Date rightIntervalDate) {
  63.         this.rightIntervalDate = rightIntervalDate;
  64.     }
  65.    
  66.     @Override
  67.     public IdentifierSearch getConfigurationId() {
  68.         return this.configurationId;
  69.     }
  70.     @Override
  71.     public void setConfigurationId(IdentifierSearch configurationId) {
  72.         this.configurationId = configurationId;
  73.     }
  74.    
  75.     @Override
  76.     public String getSource() {
  77.         return this.source;
  78.     }
  79.     @Override
  80.     public void setSource(String source) {
  81.         this.source = source;
  82.     }
  83.    
  84.     @Override
  85.     public String getCode() {
  86.         return this.code;
  87.     }
  88.     @Override
  89.     public void setCode(String code) {
  90.         this.code = code;
  91.     }
  92.    
  93.     @Override
  94.     public Severity getSeverity() {
  95.         return this.severity;
  96.     }
  97.     @Override
  98.     public void setSeverity(Severity severity) {
  99.         this.severity = severity;
  100.     }

  101.     @Override
  102.     public IdentifierSearch getCorrelationIdentifier() {
  103.         return this.correlationIdentifier;
  104.     }
  105.     @Override
  106.     public void setCorrelationIdentifier(IdentifierSearch correlationIdentifier) {
  107.         this.correlationIdentifier = correlationIdentifier;
  108.     }
  109.    
  110.     @Override
  111.     public IdentifierSearch getClusterId() {
  112.         return this.clusterId;
  113.     }
  114.     @Override
  115.     public void setClusterId(IdentifierSearch clusterId) {
  116.         this.clusterId = clusterId;
  117.     }
  118.    
  119.     @Override
  120.     public SortOrder getSortOrder() {
  121.         return this.sortOrder;
  122.     }

  123.     @Override
  124.     public void setSortOrder(SortOrder sortOrder) {
  125.         this.sortOrder = sortOrder;
  126.     }

  127. }