PortaDominio.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.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlType;
  26. import org.openspcoop2.core.registry.constants.StatoFunzionalita;
  27. import java.io.Serializable;


  28. /** <p>Java class for porta-dominio complex type.
  29.  *
  30.  * <p>The following schema fragment specifies the expected content contained within this class.
  31.  *
  32.  * <pre>
  33.  * &lt;complexType name="porta-dominio"&gt;
  34.  *      &lt;attribute name="super-user" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  35.  *      &lt;attribute name="nome" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  36.  *      &lt;attribute name="descrizione" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  37.  *      &lt;attribute name="implementazione" type="{http://www.w3.org/2001/XMLSchema}string" use="optional" default="standard"/&gt;
  38.  *      &lt;attribute name="subject" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  39.  *      &lt;attribute name="client-auth" type="{http://www.openspcoop2.org/core/registry}StatoFunzionalita" use="optional" default="disabilitato"/&gt;
  40.  *      &lt;attribute name="ora-registrazione" type="{http://www.w3.org/2001/XMLSchema}dateTime" use="optional"/&gt;
  41.  *      &lt;attribute name="old-nome-for-update" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  42.  * &lt;/complexType&gt;
  43.  * </pre>
  44.  *
  45.  * @version $Rev$, $Date$
  46.  *
  47.  * @author Poli Andrea (poli@link.it)
  48.  * @author $Author$
  49.  * */

  50. @XmlAccessorType(XmlAccessType.FIELD)
  51. @XmlType(name = "porta-dominio")

  52. @XmlRootElement(name = "porta-dominio")

  53. public class PortaDominio extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  54.   public PortaDominio() {
  55.     super();
  56.   }

  57.   public String getOldNomeForUpdate() {
  58.     if(this.oldNomeForUpdate!=null && ("".equals(this.oldNomeForUpdate)==false)){
  59.         return this.oldNomeForUpdate.trim();
  60.     }else{
  61.         return null;
  62.     }

  63.   }

  64.   public void setOldNomeForUpdate(String oldNomeForUpdate) {
  65.     this.oldNomeForUpdate=oldNomeForUpdate;
  66.   }

  67.   public java.lang.String getSuperUser() {
  68.     return this.superUser;
  69.   }

  70.   public void setSuperUser(java.lang.String superUser) {
  71.     this.superUser = superUser;
  72.   }

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

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

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

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

  85.   public java.lang.String getImplementazione() {
  86.     return this.implementazione;
  87.   }

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

  91.   public java.lang.String getSubject() {
  92.     return this.subject;
  93.   }

  94.   public void setSubject(java.lang.String subject) {
  95.     this.subject = subject;
  96.   }

  97.   public void setClientAuthRawEnumValue(String value) {
  98.     this.clientAuth = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  99.   }

  100.   public String getClientAuthRawEnumValue() {
  101.     if(this.clientAuth == null){
  102.         return null;
  103.     }else{
  104.         return this.clientAuth.toString();
  105.     }
  106.   }

  107.   public org.openspcoop2.core.registry.constants.StatoFunzionalita getClientAuth() {
  108.     return this.clientAuth;
  109.   }

  110.   public void setClientAuth(org.openspcoop2.core.registry.constants.StatoFunzionalita clientAuth) {
  111.     this.clientAuth = clientAuth;
  112.   }

  113.   public java.util.Date getOraRegistrazione() {
  114.     return this.oraRegistrazione;
  115.   }

  116.   public void setOraRegistrazione(java.util.Date oraRegistrazione) {
  117.     this.oraRegistrazione = oraRegistrazione;
  118.   }

  119.   private static final long serialVersionUID = 1L;

  120.   private static org.openspcoop2.core.registry.model.PortaDominioModel modelStaticInstance = null;
  121.   private static synchronized void initModelStaticInstance(){
  122.       if(org.openspcoop2.core.registry.PortaDominio.modelStaticInstance==null){
  123.             org.openspcoop2.core.registry.PortaDominio.modelStaticInstance = new org.openspcoop2.core.registry.model.PortaDominioModel();
  124.       }
  125.   }
  126.   public static org.openspcoop2.core.registry.model.PortaDominioModel model(){
  127.       if(org.openspcoop2.core.registry.PortaDominio.modelStaticInstance==null){
  128.             initModelStaticInstance();
  129.       }
  130.       return org.openspcoop2.core.registry.PortaDominio.modelStaticInstance;
  131.   }


  132.   @javax.xml.bind.annotation.XmlTransient
  133.   protected String oldNomeForUpdate;

  134.   @javax.xml.bind.annotation.XmlTransient
  135.   protected java.lang.String superUser;

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

  139.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  140.   @XmlAttribute(name="descrizione",required=false)
  141.   protected java.lang.String descrizione;

  142.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  143.   @XmlAttribute(name="implementazione",required=false)
  144.   protected java.lang.String implementazione = "standard";

  145.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  146.   @XmlAttribute(name="subject",required=false)
  147.   protected java.lang.String subject;

  148.   @javax.xml.bind.annotation.XmlTransient
  149.   protected java.lang.String clientAuthRawEnumValue;

  150.   @XmlAttribute(name="client-auth",required=false)
  151.   protected StatoFunzionalita clientAuth = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString("disabilitato");

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

  156. }