Scope.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.IDScope;
  28. import org.openspcoop2.core.registry.constants.ScopeContesto;
  29. import java.io.Serializable;


  30. /** <p>Java class for scope complex type.
  31.  *
  32.  * <p>The following schema fragment specifies the expected content contained within this class.
  33.  *
  34.  * <pre>
  35.  * &lt;complexType name="scope"&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="tipologia" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  42.  *      &lt;attribute name="nome-esterno" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  43.  *      &lt;attribute name="contesto-utilizzo" type="{http://www.openspcoop2.org/core/registry}ScopeContesto" use="optional" default="qualsiasi"/&gt;
  44.  *      &lt;attribute name="ora-registrazione" type="{http://www.w3.org/2001/XMLSchema}dateTime" use="optional"/&gt;
  45.  *      &lt;attribute name="super-user" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  46.  *      &lt;attribute name="old-id-scope-for-update" type="{http://www.openspcoop2.org/core/registry}id-scope" use="optional"/&gt;
  47.  * &lt;/complexType&gt;
  48.  * </pre>
  49.  *
  50.  * @version $Rev$, $Date$
  51.  *
  52.  * @author Poli Andrea (poli@link.it)
  53.  * @author $Author$
  54.  * */

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

  61. @XmlRootElement(name = "scope")

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

  66.   public IDScope getOldIDScopeForUpdate() {
  67.     return this.oldIDScopeForUpdate;
  68.   }

  69.   public void setOldIDScopeForUpdate(IDScope oldIDScopeForUpdate) {
  70.     this.oldIDScopeForUpdate=oldIDScopeForUpdate;
  71.   }

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

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

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

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

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

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

  90.   public java.lang.String getTipologia() {
  91.     return this.tipologia;
  92.   }

  93.   public void setTipologia(java.lang.String tipologia) {
  94.     this.tipologia = tipologia;
  95.   }

  96.   public java.lang.String getNomeEsterno() {
  97.     return this.nomeEsterno;
  98.   }

  99.   public void setNomeEsterno(java.lang.String nomeEsterno) {
  100.     this.nomeEsterno = nomeEsterno;
  101.   }

  102.   public void setContestoUtilizzoRawEnumValue(String value) {
  103.     this.contestoUtilizzo = (ScopeContesto) ScopeContesto.toEnumConstantFromString(value);
  104.   }

  105.   public String getContestoUtilizzoRawEnumValue() {
  106.     if(this.contestoUtilizzo == null){
  107.         return null;
  108.     }else{
  109.         return this.contestoUtilizzo.toString();
  110.     }
  111.   }

  112.   public org.openspcoop2.core.registry.constants.ScopeContesto getContestoUtilizzo() {
  113.     return this.contestoUtilizzo;
  114.   }

  115.   public void setContestoUtilizzo(org.openspcoop2.core.registry.constants.ScopeContesto contestoUtilizzo) {
  116.     this.contestoUtilizzo = contestoUtilizzo;
  117.   }

  118.   public java.util.Date getOraRegistrazione() {
  119.     return this.oraRegistrazione;
  120.   }

  121.   public void setOraRegistrazione(java.util.Date oraRegistrazione) {
  122.     this.oraRegistrazione = oraRegistrazione;
  123.   }

  124.   public java.lang.String getSuperUser() {
  125.     return this.superUser;
  126.   }

  127.   public void setSuperUser(java.lang.String superUser) {
  128.     this.superUser = superUser;
  129.   }

  130.   private static final long serialVersionUID = 1L;

  131.   private static org.openspcoop2.core.registry.model.ScopeModel modelStaticInstance = null;
  132.   private static synchronized void initModelStaticInstance(){
  133.       if(org.openspcoop2.core.registry.Scope.modelStaticInstance==null){
  134.             org.openspcoop2.core.registry.Scope.modelStaticInstance = new org.openspcoop2.core.registry.model.ScopeModel();
  135.       }
  136.   }
  137.   public static org.openspcoop2.core.registry.model.ScopeModel model(){
  138.       if(org.openspcoop2.core.registry.Scope.modelStaticInstance==null){
  139.             initModelStaticInstance();
  140.       }
  141.       return org.openspcoop2.core.registry.Scope.modelStaticInstance;
  142.   }


  143.   @javax.xml.bind.annotation.XmlTransient
  144.   protected IDScope oldIDScopeForUpdate;

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

  147.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  148.   @XmlAttribute(name="nome",required=true)
  149.   protected java.lang.String nome;

  150.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  151.   @XmlAttribute(name="descrizione",required=false)
  152.   protected java.lang.String descrizione;

  153.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  154.   @XmlAttribute(name="tipologia",required=false)
  155.   protected java.lang.String tipologia;

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

  159.   @javax.xml.bind.annotation.XmlTransient
  160.   protected java.lang.String contestoUtilizzoRawEnumValue;

  161.   @XmlAttribute(name="contesto-utilizzo",required=false)
  162.   protected ScopeContesto contestoUtilizzo = (ScopeContesto) ScopeContesto.toEnumConstantFromString("qualsiasi");

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

  167.   @javax.xml.bind.annotation.XmlTransient
  168.   protected java.lang.String superUser;

  169. }