Gruppo.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;

  21. import javax.xml.bind.annotation.XmlAccessType;
  22. import javax.xml.bind.annotation.XmlAccessorType;
  23. import javax.xml.bind.annotation.XmlAttribute;
  24. import javax.xml.bind.annotation.XmlElement;
  25. import javax.xml.bind.annotation.XmlRootElement;
  26. import javax.xml.bind.annotation.XmlType;
  27. import org.openspcoop2.core.id.IDGruppo;
  28. import org.openspcoop2.core.registry.constants.ServiceBinding;
  29. import java.io.Serializable;


  30. /** <p>Java class for gruppo complex type.
  31.  *
  32.  * <p>The following schema fragment specifies the expected content contained within this class.
  33.  *
  34.  * <pre>
  35.  * &lt;complexType name="gruppo"&gt;
  36.  *      &lt;sequence&gt;
  37.  *          &lt;element name="proprieta-oggetto" type="{http://www.openspcoop2.org/core/registry}proprieta-oggetto" minOccurs="0" maxOccurs="1"/&gt;
  38.  *      &lt;/sequence&gt;
  39.  *      &lt;attribute name="nome" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  40.  *      &lt;attribute name="descrizione" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  41.  *      &lt;attribute name="service-binding" type="{http://www.openspcoop2.org/core/registry}ServiceBinding" use="optional"/&gt;
  42.  *      &lt;attribute name="ora-registrazione" type="{http://www.w3.org/2001/XMLSchema}dateTime" use="optional"/&gt;
  43.  *      &lt;attribute name="super-user" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  44.  *      &lt;attribute name="old-id-gruppo-for-update" type="{http://www.openspcoop2.org/core/registry}id-gruppo" use="optional"/&gt;
  45.  * &lt;/complexType&gt;
  46.  * </pre>
  47.  *
  48.  * @version $Rev$, $Date$
  49.  *
  50.  * @author Poli Andrea (poli@link.it)
  51.  * @author $Author$
  52.  * */

  53. @XmlAccessorType(XmlAccessType.FIELD)
  54. @XmlType(name = "gruppo",
  55.   propOrder = {
  56.     "proprietaOggetto"
  57.   }
  58. )

  59. @XmlRootElement(name = "gruppo")

  60. public class Gruppo extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  61.   public Gruppo() {
  62.     super();
  63.   }

  64.   public IDGruppo getOldIDGruppoForUpdate() {
  65.     return this.oldIDGruppoForUpdate;
  66.   }

  67.   public void setOldIDGruppoForUpdate(IDGruppo oldIDGruppoForUpdate) {
  68.     this.oldIDGruppoForUpdate=oldIDGruppoForUpdate;
  69.   }

  70.   public ProprietaOggetto getProprietaOggetto() {
  71.     return this.proprietaOggetto;
  72.   }

  73.   public void setProprietaOggetto(ProprietaOggetto proprietaOggetto) {
  74.     this.proprietaOggetto = proprietaOggetto;
  75.   }

  76.   public java.lang.String getNome() {
  77.     return this.nome;
  78.   }

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

  82.   public java.lang.String getDescrizione() {
  83.     return this.descrizione;
  84.   }

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

  88.   public void setServiceBindingRawEnumValue(String value) {
  89.     this.serviceBinding = (ServiceBinding) ServiceBinding.toEnumConstantFromString(value);
  90.   }

  91.   public String getServiceBindingRawEnumValue() {
  92.     if(this.serviceBinding == null){
  93.         return null;
  94.     }else{
  95.         return this.serviceBinding.toString();
  96.     }
  97.   }

  98.   public org.openspcoop2.core.registry.constants.ServiceBinding getServiceBinding() {
  99.     return this.serviceBinding;
  100.   }

  101.   public void setServiceBinding(org.openspcoop2.core.registry.constants.ServiceBinding serviceBinding) {
  102.     this.serviceBinding = serviceBinding;
  103.   }

  104.   public java.util.Date getOraRegistrazione() {
  105.     return this.oraRegistrazione;
  106.   }

  107.   public void setOraRegistrazione(java.util.Date oraRegistrazione) {
  108.     this.oraRegistrazione = oraRegistrazione;
  109.   }

  110.   public java.lang.String getSuperUser() {
  111.     return this.superUser;
  112.   }

  113.   public void setSuperUser(java.lang.String superUser) {
  114.     this.superUser = superUser;
  115.   }

  116.   private static final long serialVersionUID = 1L;

  117.   private static org.openspcoop2.core.registry.model.GruppoModel modelStaticInstance = null;
  118.   private static synchronized void initModelStaticInstance(){
  119.       if(org.openspcoop2.core.registry.Gruppo.modelStaticInstance==null){
  120.             org.openspcoop2.core.registry.Gruppo.modelStaticInstance = new org.openspcoop2.core.registry.model.GruppoModel();
  121.       }
  122.   }
  123.   public static org.openspcoop2.core.registry.model.GruppoModel model(){
  124.       if(org.openspcoop2.core.registry.Gruppo.modelStaticInstance==null){
  125.             initModelStaticInstance();
  126.       }
  127.       return org.openspcoop2.core.registry.Gruppo.modelStaticInstance;
  128.   }


  129.   @javax.xml.bind.annotation.XmlTransient
  130.   protected IDGruppo oldIDGruppoForUpdate;

  131.   @XmlElement(name="proprieta-oggetto",required=false,nillable=false)
  132.   protected ProprietaOggetto proprietaOggetto;

  133.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  134.   @XmlAttribute(name="nome",required=true)
  135.   protected java.lang.String nome;

  136.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  137.   @XmlAttribute(name="descrizione",required=false)
  138.   protected java.lang.String descrizione;

  139.   @javax.xml.bind.annotation.XmlTransient
  140.   protected java.lang.String serviceBindingRawEnumValue;

  141.   @XmlAttribute(name="service-binding",required=false)
  142.   protected ServiceBinding serviceBinding;

  143.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  144.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  145.   @XmlAttribute(name="ora-registrazione",required=false)
  146.   protected java.util.Date oraRegistrazione;

  147.   @javax.xml.bind.annotation.XmlTransient
  148.   protected java.lang.String superUser;

  149. }