ResourceSintetica.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.core.registry.beans;

  21. import java.io.Serializable;

  22. import org.openspcoop2.core.registry.Resource;
  23. import org.openspcoop2.core.registry.constants.HttpMethod;


  24. /**
  25.  * ResourceSintetica
  26.  *
  27.  * @version $Rev$, $Date$
  28.  *
  29.  * @author Poli Andrea (poli@link.it)
  30.  * @author $Author$
  31.  * */

  32. public class ResourceSintetica extends org.openspcoop2.utils.beans.BaseBean implements Serializable , Cloneable {
  33.     /**
  34.      *
  35.      */
  36.     private static final long serialVersionUID = 1L;

  37.     public ResourceSintetica() {
  38.     }
  39.     public ResourceSintetica(Resource param) {
  40.         this.id = param.getId();
  41.         this.profAzione = param.getProfAzione();
  42.         this.idAccordo = param.getIdAccordo();
  43.         this.nome = param.getNome();
  44.         this.descrizione = param.getDescrizione();
  45.         this.path = param.getPath();
  46.         this.method = param.getMethod();
  47.     }
  48.    
  49.     private Long id;

  50.     private java.lang.String profAzione;

  51.     private java.lang.Long idAccordo;

  52.     private java.lang.String nome;

  53.     private java.lang.String descrizione;

  54.     private java.lang.String path;

  55.     private HttpMethod method;

  56.     public Long getId() {
  57.         return this.id;
  58.     }

  59.     public void setId(Long id) {
  60.         this.id = id;
  61.     }

  62.     public java.lang.String getProfAzione() {
  63.         return this.profAzione;
  64.     }

  65.     public void setProfAzione(java.lang.String profAzione) {
  66.         this.profAzione = profAzione;
  67.     }

  68.     public java.lang.Long getIdAccordo() {
  69.         return this.idAccordo;
  70.     }

  71.     public void setIdAccordo(java.lang.Long idAccordo) {
  72.         this.idAccordo = idAccordo;
  73.     }

  74.     public java.lang.String getNome() {
  75.         return this.nome;
  76.     }

  77.     public void setNome(java.lang.String nome) {
  78.         this.nome = nome;
  79.     }

  80.     public java.lang.String getDescrizione() {
  81.         return this.descrizione;
  82.     }

  83.     public void setDescrizione(java.lang.String descrizione) {
  84.         this.descrizione = descrizione;
  85.     }

  86.     public java.lang.String getPath() {
  87.         return this.path;
  88.     }

  89.     public void setPath(java.lang.String path) {
  90.         this.path = path;
  91.     }

  92.     public HttpMethod getMethod() {
  93.         return this.method;
  94.     }

  95.     public void setMethod(HttpMethod method) {
  96.         this.method = method;
  97.     }


  98. }