IdServizio.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.config.rs.server.api.impl;

  21. import org.openspcoop2.core.id.IDServizio;

  22. /**
  23.  * IdServizio
  24.  *
  25.  * @author $Author$
  26.  * @version $Rev$, $Date$
  27.  *
  28.  */
  29. public class IdServizio extends IDServizio {
  30.     private static final long serialVersionUID = 1L;
  31.    
  32.     protected Long id;
  33.    
  34.     public IdServizio() {
  35.        
  36.     }
  37.    
  38.     @SuppressWarnings("deprecation")
  39.     public IdServizio(IDServizio parent, Long id) {
  40.         this.setAzione(parent.getAzione());
  41.         this.setID(id);
  42.         this.setNome(parent.getNome());
  43.         this.setSoggettoErogatore(parent.getSoggettoErogatore());
  44.         this.setTipo(parent.getTipo());
  45.         this.setTipologia(parent.getTipologia());
  46.         this.setUriAccordoServizioParteComune(parent.getUriAccordoServizioParteComune());
  47.         this.setVersione(parent.getVersione());    
  48.     }
  49.    
  50.     public Long getId() {
  51.         return this.id;
  52.     }
  53.    
  54.     public void setID(Long id) {
  55.         this.id = id;
  56.     }

  57. }