DumpAllegato.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.transazioni;

  21. import javax.xml.bind.annotation.XmlAccessType;
  22. import javax.xml.bind.annotation.XmlAccessorType;
  23. import javax.xml.bind.annotation.XmlElement;
  24. import javax.xml.bind.annotation.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlType;
  26. import java.io.Serializable;
  27. import java.util.ArrayList;
  28. import java.util.List;


  29. /** <p>Java class for dump-allegato complex type.
  30.  *
  31.  * <p>The following schema fragment specifies the expected content contained within this class.
  32.  *
  33.  * <pre>
  34.  * &lt;complexType name="dump-allegato"&gt;
  35.  *      &lt;sequence&gt;
  36.  *          &lt;element name="content-type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  37.  *          &lt;element name="content-id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  38.  *          &lt;element name="content-location" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  39.  *          &lt;element name="allegato" type="{http://www.w3.org/2001/XMLSchema}hexBinary" minOccurs="0" maxOccurs="1"/&gt;
  40.  *          &lt;element name="header" type="{http://www.openspcoop2.org/core/transazioni}dump-header-allegato" minOccurs="0" maxOccurs="unbounded"/&gt;
  41.  *          &lt;element name="dump-timestamp" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="1" maxOccurs="1"/&gt;
  42.  *          &lt;element name="header-ext" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  43.  *      &lt;/sequence&gt;
  44.  * &lt;/complexType&gt;
  45.  * </pre>
  46.  *
  47.  * @version $Rev$, $Date$
  48.  *
  49.  * @author Poli Andrea (poli@link.it)
  50.  * @author $Author$
  51.  * */

  52. @XmlAccessorType(XmlAccessType.FIELD)
  53. @XmlType(name = "dump-allegato",
  54.   propOrder = {
  55.     "contentType",
  56.     "contentId",
  57.     "contentLocation",
  58.     "allegato",
  59.     "header",
  60.     "dumpTimestamp",
  61.     "headerExt"
  62.   }
  63. )

  64. @XmlRootElement(name = "dump-allegato")

  65. public class DumpAllegato extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  66.   public DumpAllegato() {
  67.     super();
  68.   }

  69.   public java.lang.String getContentType() {
  70.     return this.contentType;
  71.   }

  72.   public void setContentType(java.lang.String contentType) {
  73.     this.contentType = contentType;
  74.   }

  75.   public java.lang.String getContentId() {
  76.     return this.contentId;
  77.   }

  78.   public void setContentId(java.lang.String contentId) {
  79.     this.contentId = contentId;
  80.   }

  81.   public java.lang.String getContentLocation() {
  82.     return this.contentLocation;
  83.   }

  84.   public void setContentLocation(java.lang.String contentLocation) {
  85.     this.contentLocation = contentLocation;
  86.   }

  87.   public byte[] getAllegato() {
  88.     return this.allegato;
  89.   }

  90.   public void setAllegato(byte[] allegato) {
  91.     this.allegato = allegato;
  92.   }

  93.   public void addHeader(DumpHeaderAllegato header) {
  94.     this.header.add(header);
  95.   }

  96.   public DumpHeaderAllegato getHeader(int index) {
  97.     return this.header.get( index );
  98.   }

  99.   public DumpHeaderAllegato removeHeader(int index) {
  100.     return this.header.remove( index );
  101.   }

  102.   public List<DumpHeaderAllegato> getHeaderList() {
  103.     return this.header;
  104.   }

  105.   public void setHeaderList(List<DumpHeaderAllegato> header) {
  106.     this.header=header;
  107.   }

  108.   public int sizeHeaderList() {
  109.     return this.header.size();
  110.   }

  111.   public java.util.Date getDumpTimestamp() {
  112.     return this.dumpTimestamp;
  113.   }

  114.   public void setDumpTimestamp(java.util.Date dumpTimestamp) {
  115.     this.dumpTimestamp = dumpTimestamp;
  116.   }

  117.   public java.lang.String getHeaderExt() {
  118.     return this.headerExt;
  119.   }

  120.   public void setHeaderExt(java.lang.String headerExt) {
  121.     this.headerExt = headerExt;
  122.   }

  123.   private static final long serialVersionUID = 1L;



  124.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  125.   @XmlElement(name="content-type",required=false,nillable=false)
  126.   protected java.lang.String contentType;

  127.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  128.   @XmlElement(name="content-id",required=false,nillable=false)
  129.   protected java.lang.String contentId;

  130.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  131.   @XmlElement(name="content-location",required=false,nillable=false)
  132.   protected java.lang.String contentLocation;

  133.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(javax.xml.bind.annotation.adapters.HexBinaryAdapter.class)
  134.   @javax.xml.bind.annotation.XmlSchemaType(name="hexBinary")
  135.   @XmlElement(type=String.class, name="allegato",required=false,nillable=false)
  136.   protected byte[] allegato;

  137.   @XmlElement(name="header",required=true,nillable=false)
  138.   private List<DumpHeaderAllegato> header = new ArrayList<>();

  139.   /**
  140.    * Use method getHeaderList
  141.    * @return List&lt;DumpHeaderAllegato&gt;
  142.   */
  143.   public List<DumpHeaderAllegato> getHeader() {
  144.     return this.getHeaderList();
  145.   }

  146.   /**
  147.    * Use method setHeaderList
  148.    * @param header List&lt;DumpHeaderAllegato&gt;
  149.   */
  150.   public void setHeader(List<DumpHeaderAllegato> header) {
  151.     this.setHeaderList(header);
  152.   }

  153.   /**
  154.    * Use method sizeHeaderList
  155.    * @return lunghezza della lista
  156.   */
  157.   public int sizeHeader() {
  158.     return this.sizeHeaderList();
  159.   }

  160.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  161.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  162.   @XmlElement(name="dump-timestamp",required=true,nillable=false,type=java.lang.String.class)
  163.   protected java.util.Date dumpTimestamp;

  164.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  165.   @XmlElement(name="header-ext",required=false,nillable=false)
  166.   protected java.lang.String headerExt;

  167. }