Ruolo.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.IDRuolo;
  28. import org.openspcoop2.core.registry.constants.RuoloContesto;
  29. import org.openspcoop2.core.registry.constants.RuoloTipologia;
  30. import java.io.Serializable;


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

  56. @XmlAccessorType(XmlAccessType.FIELD)
  57. @XmlType(name = "ruolo",
  58.   propOrder = {
  59.     "proprietaOggetto"
  60.   }
  61. )

  62. @XmlRootElement(name = "ruolo")

  63. public class Ruolo extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  64.   public Ruolo() {
  65.     super();
  66.   }

  67.   public IDRuolo getOldIDRuoloForUpdate() {
  68.     return this.oldIDRuoloForUpdate;
  69.   }

  70.   public void setOldIDRuoloForUpdate(IDRuolo oldIDRuoloForUpdate) {
  71.     this.oldIDRuoloForUpdate=oldIDRuoloForUpdate;
  72.   }

  73.   public ProprietaOggetto getProprietaOggetto() {
  74.     return this.proprietaOggetto;
  75.   }

  76.   public void setProprietaOggetto(ProprietaOggetto proprietaOggetto) {
  77.     this.proprietaOggetto = proprietaOggetto;
  78.   }

  79.   public java.lang.String getNome() {
  80.     return this.nome;
  81.   }

  82.   public void setNome(java.lang.String nome) {
  83.     this.nome = nome;
  84.   }

  85.   public java.lang.String getDescrizione() {
  86.     return this.descrizione;
  87.   }

  88.   public void setDescrizione(java.lang.String descrizione) {
  89.     this.descrizione = descrizione;
  90.   }

  91.   public void setTipologiaRawEnumValue(String value) {
  92.     this.tipologia = (RuoloTipologia) RuoloTipologia.toEnumConstantFromString(value);
  93.   }

  94.   public String getTipologiaRawEnumValue() {
  95.     if(this.tipologia == null){
  96.         return null;
  97.     }else{
  98.         return this.tipologia.toString();
  99.     }
  100.   }

  101.   public org.openspcoop2.core.registry.constants.RuoloTipologia getTipologia() {
  102.     return this.tipologia;
  103.   }

  104.   public void setTipologia(org.openspcoop2.core.registry.constants.RuoloTipologia tipologia) {
  105.     this.tipologia = tipologia;
  106.   }

  107.   public java.lang.String getNomeEsterno() {
  108.     return this.nomeEsterno;
  109.   }

  110.   public void setNomeEsterno(java.lang.String nomeEsterno) {
  111.     this.nomeEsterno = nomeEsterno;
  112.   }

  113.   public void setContestoUtilizzoRawEnumValue(String value) {
  114.     this.contestoUtilizzo = (RuoloContesto) RuoloContesto.toEnumConstantFromString(value);
  115.   }

  116.   public String getContestoUtilizzoRawEnumValue() {
  117.     if(this.contestoUtilizzo == null){
  118.         return null;
  119.     }else{
  120.         return this.contestoUtilizzo.toString();
  121.     }
  122.   }

  123.   public org.openspcoop2.core.registry.constants.RuoloContesto getContestoUtilizzo() {
  124.     return this.contestoUtilizzo;
  125.   }

  126.   public void setContestoUtilizzo(org.openspcoop2.core.registry.constants.RuoloContesto contestoUtilizzo) {
  127.     this.contestoUtilizzo = contestoUtilizzo;
  128.   }

  129.   public java.util.Date getOraRegistrazione() {
  130.     return this.oraRegistrazione;
  131.   }

  132.   public void setOraRegistrazione(java.util.Date oraRegistrazione) {
  133.     this.oraRegistrazione = oraRegistrazione;
  134.   }

  135.   public java.lang.String getSuperUser() {
  136.     return this.superUser;
  137.   }

  138.   public void setSuperUser(java.lang.String superUser) {
  139.     this.superUser = superUser;
  140.   }

  141.   private static final long serialVersionUID = 1L;

  142.   private static org.openspcoop2.core.registry.model.RuoloModel modelStaticInstance = null;
  143.   private static synchronized void initModelStaticInstance(){
  144.       if(org.openspcoop2.core.registry.Ruolo.modelStaticInstance==null){
  145.             org.openspcoop2.core.registry.Ruolo.modelStaticInstance = new org.openspcoop2.core.registry.model.RuoloModel();
  146.       }
  147.   }
  148.   public static org.openspcoop2.core.registry.model.RuoloModel model(){
  149.       if(org.openspcoop2.core.registry.Ruolo.modelStaticInstance==null){
  150.             initModelStaticInstance();
  151.       }
  152.       return org.openspcoop2.core.registry.Ruolo.modelStaticInstance;
  153.   }


  154.   @javax.xml.bind.annotation.XmlTransient
  155.   protected IDRuolo oldIDRuoloForUpdate;

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

  158.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  159.   @XmlAttribute(name="nome",required=true)
  160.   protected java.lang.String nome;

  161.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  162.   @XmlAttribute(name="descrizione",required=false)
  163.   protected java.lang.String descrizione;

  164.   @javax.xml.bind.annotation.XmlTransient
  165.   protected java.lang.String tipologiaRawEnumValue;

  166.   @XmlAttribute(name="tipologia",required=false)
  167.   protected RuoloTipologia tipologia = (RuoloTipologia) RuoloTipologia.toEnumConstantFromString("qualsiasi");

  168.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  169.   @XmlAttribute(name="nome-esterno",required=false)
  170.   protected java.lang.String nomeEsterno;

  171.   @javax.xml.bind.annotation.XmlTransient
  172.   protected java.lang.String contestoUtilizzoRawEnumValue;

  173.   @XmlAttribute(name="contesto-utilizzo",required=false)
  174.   protected RuoloContesto contestoUtilizzo = (RuoloContesto) RuoloContesto.toEnumConstantFromString("qualsiasi");

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

  179.   @javax.xml.bind.annotation.XmlTransient
  180.   protected java.lang.String superUser;

  181. }