Operation.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.web.lib.audit.log;

  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.web.lib.audit.log.constants.Stato;
  28. import org.openspcoop2.web.lib.audit.log.constants.Tipologia;
  29. import java.io.Serializable;
  30. import java.util.ArrayList;
  31. import java.util.List;


  32. /** <p>Java class for operation complex type.
  33.  *
  34.  * <p>The following schema fragment specifies the expected content contained within this class.
  35.  *
  36.  * <pre>
  37.  * &lt;complexType name="operation"&gt;
  38.  *      &lt;sequence&gt;
  39.  *          &lt;element name="object_details" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  40.  *          &lt;element name="binary" type="{http://www.openspcoop2.org/web/lib/audit/log}binary" minOccurs="0" maxOccurs="unbounded"/&gt;
  41.  *      &lt;/sequence&gt;
  42.  *      &lt;attribute name="tipologia" type="{http://www.openspcoop2.org/web/lib/audit/log}tipologia" use="required"/&gt;
  43.  *      &lt;attribute name="tipo-oggetto" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  44.  *      &lt;attribute name="object-id" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  45.  *      &lt;attribute name="object-old-id" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  46.  *      &lt;attribute name="utente" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  47.  *      &lt;attribute name="stato" type="{http://www.openspcoop2.org/web/lib/audit/log}stato" use="required"/&gt;
  48.  *      &lt;attribute name="object_class" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  49.  *      &lt;attribute name="error" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  50.  *      &lt;attribute name="time-request" type="{http://www.w3.org/2001/XMLSchema}dateTime" use="required"/&gt;
  51.  *      &lt;attribute name="time-execute" type="{http://www.w3.org/2001/XMLSchema}dateTime" use="required"/&gt;
  52.  *      &lt;attribute name="interface-msg" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  53.  * &lt;/complexType&gt;
  54.  * </pre>
  55.  *
  56.  * @version $Rev$, $Date$
  57.  *
  58.  * @author Poli Andrea (poli@link.it)
  59.  * @author $Author$
  60.  * */

  61. @XmlAccessorType(XmlAccessType.FIELD)
  62. @XmlType(name = "operation",
  63.   propOrder = {
  64.     "objectDetails",
  65.     "binary"
  66.   }
  67. )

  68. @XmlRootElement(name = "operation")

  69. public class Operation extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  70.   public Operation() {
  71.     super();
  72.   }

  73.   public java.lang.String getObjectDetails() {
  74.     return this.objectDetails;
  75.   }

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

  79.   public void addBinary(Binary binary) {
  80.     this.binary.add(binary);
  81.   }

  82.   public Binary getBinary(int index) {
  83.     return this.binary.get( index );
  84.   }

  85.   public Binary removeBinary(int index) {
  86.     return this.binary.remove( index );
  87.   }

  88.   public List<Binary> getBinaryList() {
  89.     return this.binary;
  90.   }

  91.   public void setBinaryList(List<Binary> binary) {
  92.     this.binary=binary;
  93.   }

  94.   public int sizeBinaryList() {
  95.     return this.binary.size();
  96.   }

  97.   public void setTipologiaRawEnumValue(String value) {
  98.     this.tipologia = (Tipologia) Tipologia.toEnumConstantFromString(value);
  99.   }

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

  107.   public org.openspcoop2.web.lib.audit.log.constants.Tipologia getTipologia() {
  108.     return this.tipologia;
  109.   }

  110.   public void setTipologia(org.openspcoop2.web.lib.audit.log.constants.Tipologia tipologia) {
  111.     this.tipologia = tipologia;
  112.   }

  113.   public java.lang.String getTipoOggetto() {
  114.     return this.tipoOggetto;
  115.   }

  116.   public void setTipoOggetto(java.lang.String tipoOggetto) {
  117.     this.tipoOggetto = tipoOggetto;
  118.   }

  119.   public java.lang.String getObjectId() {
  120.     return this.objectId;
  121.   }

  122.   public void setObjectId(java.lang.String objectId) {
  123.     this.objectId = objectId;
  124.   }

  125.   public java.lang.String getObjectOldId() {
  126.     return this.objectOldId;
  127.   }

  128.   public void setObjectOldId(java.lang.String objectOldId) {
  129.     this.objectOldId = objectOldId;
  130.   }

  131.   public java.lang.String getUtente() {
  132.     return this.utente;
  133.   }

  134.   public void setUtente(java.lang.String utente) {
  135.     this.utente = utente;
  136.   }

  137.   public void setStatoRawEnumValue(String value) {
  138.     this.stato = (Stato) Stato.toEnumConstantFromString(value);
  139.   }

  140.   public String getStatoRawEnumValue() {
  141.     if(this.stato == null){
  142.         return null;
  143.     }else{
  144.         return this.stato.toString();
  145.     }
  146.   }

  147.   public org.openspcoop2.web.lib.audit.log.constants.Stato getStato() {
  148.     return this.stato;
  149.   }

  150.   public void setStato(org.openspcoop2.web.lib.audit.log.constants.Stato stato) {
  151.     this.stato = stato;
  152.   }

  153.   public java.lang.String getObjectClass() {
  154.     return this.objectClass;
  155.   }

  156.   public void setObjectClass(java.lang.String objectClass) {
  157.     this.objectClass = objectClass;
  158.   }

  159.   public java.lang.String getError() {
  160.     return this.error;
  161.   }

  162.   public void setError(java.lang.String error) {
  163.     this.error = error;
  164.   }

  165.   public java.util.Date getTimeRequest() {
  166.     return this.timeRequest;
  167.   }

  168.   public void setTimeRequest(java.util.Date timeRequest) {
  169.     this.timeRequest = timeRequest;
  170.   }

  171.   public java.util.Date getTimeExecute() {
  172.     return this.timeExecute;
  173.   }

  174.   public void setTimeExecute(java.util.Date timeExecute) {
  175.     this.timeExecute = timeExecute;
  176.   }

  177.   public java.lang.String getInterfaceMsg() {
  178.     return this.interfaceMsg;
  179.   }

  180.   public void setInterfaceMsg(java.lang.String interfaceMsg) {
  181.     this.interfaceMsg = interfaceMsg;
  182.   }

  183.   private static final long serialVersionUID = 1L;

  184.   private static org.openspcoop2.web.lib.audit.log.model.OperationModel modelStaticInstance = null;
  185.   private static synchronized void initModelStaticInstance(){
  186.       if(org.openspcoop2.web.lib.audit.log.Operation.modelStaticInstance==null){
  187.             org.openspcoop2.web.lib.audit.log.Operation.modelStaticInstance = new org.openspcoop2.web.lib.audit.log.model.OperationModel();
  188.       }
  189.   }
  190.   public static org.openspcoop2.web.lib.audit.log.model.OperationModel model(){
  191.       if(org.openspcoop2.web.lib.audit.log.Operation.modelStaticInstance==null){
  192.             initModelStaticInstance();
  193.       }
  194.       return org.openspcoop2.web.lib.audit.log.Operation.modelStaticInstance;
  195.   }


  196.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  197.   @XmlElement(name="object_details",required=false,nillable=false)
  198.   protected java.lang.String objectDetails;

  199.   @XmlElement(name="binary",required=true,nillable=false)
  200.   private List<Binary> binary = new ArrayList<>();

  201.   /**
  202.    * Use method getBinaryList
  203.    * @return List&lt;Binary&gt;
  204.   */
  205.   public List<Binary> getBinary() {
  206.     return this.getBinaryList();
  207.   }

  208.   /**
  209.    * Use method setBinaryList
  210.    * @param binary List&lt;Binary&gt;
  211.   */
  212.   public void setBinary(List<Binary> binary) {
  213.     this.setBinaryList(binary);
  214.   }

  215.   /**
  216.    * Use method sizeBinaryList
  217.    * @return lunghezza della lista
  218.   */
  219.   public int sizeBinary() {
  220.     return this.sizeBinaryList();
  221.   }

  222.   @javax.xml.bind.annotation.XmlTransient
  223.   protected java.lang.String tipologiaRawEnumValue;

  224.   @XmlAttribute(name="tipologia",required=true)
  225.   protected Tipologia tipologia;

  226.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  227.   @XmlAttribute(name="tipo-oggetto",required=false)
  228.   protected java.lang.String tipoOggetto;

  229.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  230.   @XmlAttribute(name="object-id",required=false)
  231.   protected java.lang.String objectId;

  232.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  233.   @XmlAttribute(name="object-old-id",required=false)
  234.   protected java.lang.String objectOldId;

  235.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  236.   @XmlAttribute(name="utente",required=true)
  237.   protected java.lang.String utente;

  238.   @javax.xml.bind.annotation.XmlTransient
  239.   protected java.lang.String statoRawEnumValue;

  240.   @XmlAttribute(name="stato",required=true)
  241.   protected Stato stato;

  242.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  243.   @XmlAttribute(name="object_class",required=false)
  244.   protected java.lang.String objectClass;

  245.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  246.   @XmlAttribute(name="error",required=false)
  247.   protected java.lang.String error;

  248.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  249.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  250.   @XmlAttribute(name="time-request",required=true)
  251.   protected java.util.Date timeRequest;

  252.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  253.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  254.   @XmlAttribute(name="time-execute",required=true)
  255.   protected java.util.Date timeExecute;

  256.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  257.   @XmlAttribute(name="interface-msg",required=false)
  258.   protected java.lang.String interfaceMsg;

  259. }