Documento.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 java.io.Serializable;


  28. /** <p>Java class for documento complex type.
  29.  *
  30.  * <p>The following schema fragment specifies the expected content contained within this class.
  31.  *
  32.  * <pre>
  33.  * &lt;complexType name="documento"&gt;
  34.  *      &lt;sequence&gt;
  35.  *          &lt;element name="byte-contenuto" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0" maxOccurs="1"/&gt;
  36.  *      &lt;/sequence&gt;
  37.  *      &lt;attribute name="ruolo" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  38.  *      &lt;attribute name="tipo-proprietario-documento" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  39.  *      &lt;attribute name="id-proprietario-documento" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" use="optional"/&gt;
  40.  *      &lt;attribute name="tipo" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  41.  *      &lt;attribute name="file" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  42.  *      &lt;attribute name="ora-registrazione" type="{http://www.w3.org/2001/XMLSchema}dateTime" use="optional"/&gt;
  43.  * &lt;/complexType&gt;
  44.  * </pre>
  45.  *
  46.  * @version $Rev$, $Date$
  47.  *
  48.  * @author Poli Andrea (poli@link.it)
  49.  * @author $Author$
  50.  * */

  51. @XmlAccessorType(XmlAccessType.FIELD)
  52. @XmlType(name = "documento",
  53.   propOrder = {
  54.     "byteContenuto"
  55.   }
  56. )

  57. @XmlRootElement(name = "documento")

  58. public class Documento extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  59.   public Documento() {
  60.     super();
  61.   }

  62.   public byte[] getByteContenuto() {
  63.     return this.byteContenuto;
  64.   }

  65.   public void setByteContenuto(byte[] byteContenuto) {
  66.     this.byteContenuto = byteContenuto;
  67.   }

  68.   public java.lang.String getRuolo() {
  69.     return this.ruolo;
  70.   }

  71.   public void setRuolo(java.lang.String ruolo) {
  72.     this.ruolo = ruolo;
  73.   }

  74.   public java.lang.String getTipoProprietarioDocumento() {
  75.     return this.tipoProprietarioDocumento;
  76.   }

  77.   public void setTipoProprietarioDocumento(java.lang.String tipoProprietarioDocumento) {
  78.     this.tipoProprietarioDocumento = tipoProprietarioDocumento;
  79.   }

  80.   public java.lang.Long getIdProprietarioDocumento() {
  81.     return this.idProprietarioDocumento;
  82.   }

  83.   public void setIdProprietarioDocumento(java.lang.Long idProprietarioDocumento) {
  84.     this.idProprietarioDocumento = idProprietarioDocumento;
  85.   }

  86.   public java.lang.String getTipo() {
  87.     return this.tipo;
  88.   }

  89.   public void setTipo(java.lang.String tipo) {
  90.     this.tipo = tipo;
  91.   }

  92.   public java.lang.String getFile() {
  93.     return this.file;
  94.   }

  95.   public void setFile(java.lang.String file) {
  96.     this.file = file;
  97.   }

  98.   public java.util.Date getOraRegistrazione() {
  99.     return this.oraRegistrazione;
  100.   }

  101.   public void setOraRegistrazione(java.util.Date oraRegistrazione) {
  102.     this.oraRegistrazione = oraRegistrazione;
  103.   }

  104.   private static final long serialVersionUID = 1L;



  105.   @javax.xml.bind.annotation.XmlSchemaType(name="base64Binary")
  106.   @XmlElement(name="byte-contenuto",required=false,nillable=false)
  107.   protected byte[] byteContenuto;

  108.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  109.   @XmlAttribute(name="ruolo",required=false)
  110.   protected java.lang.String ruolo;

  111.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  112.   @XmlAttribute(name="tipo-proprietario-documento",required=false)
  113.   protected java.lang.String tipoProprietarioDocumento;

  114.   @javax.xml.bind.annotation.XmlTransient
  115.   protected java.lang.Long idProprietarioDocumento;

  116.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  117.   @XmlAttribute(name="tipo",required=true)
  118.   protected java.lang.String tipo;

  119.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  120.   @XmlAttribute(name="file",required=true)
  121.   protected java.lang.String file;

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

  126. }