From 4bd7035d204413bb79eb91c503aa7347348c0a8d Mon Sep 17 00:00:00 2001
From: RIHTARSIC Joze <joze.rihtarsic@ext.ec.europa.eu>
Date: Fri, 14 Apr 2023 17:32:54 +0200
Subject: [PATCH] Fix missing XML Error entity

---
 smp-angular/src/_smp-all-themes.scss          |   4 +-
 .../ec/services/smp/_1/ErrorResponse.java     | 144 ++++++++++++++++++
 .../ec/services/smp/_1/ObjectFactory.java     |  47 ++++++
 .../java/ec/services/smp/_1/package-info.java |   9 ++
 4 files changed, 202 insertions(+), 2 deletions(-)
 create mode 100644 smp-webapp/src/main/java/ec/services/smp/_1/ErrorResponse.java
 create mode 100644 smp-webapp/src/main/java/ec/services/smp/_1/ObjectFactory.java
 create mode 100644 smp-webapp/src/main/java/ec/services/smp/_1/package-info.java

diff --git a/smp-angular/src/_smp-all-themes.scss b/smp-angular/src/_smp-all-themes.scss
index 9f979f813..33225695b 100644
--- a/smp-angular/src/_smp-all-themes.scss
+++ b/smp-angular/src/_smp-all-themes.scss
@@ -20,7 +20,7 @@
   }
 
   .datatable-row-odd {
-    background-color: smp.get-theme-color($theme, primary,50, 0.2)  !important;
+    background-color: smp.get-theme-color($theme, primary, 50, 0.2) !important;
   }
 
   .datatable-row-selected {
@@ -39,7 +39,7 @@
     text-align: center;
   }
 
-  .smp-field-error{
+  .smp-field-error {
     color: smp.get-theme-color($theme, warn, 500) !important;
     font-size: 70%;
   }
diff --git a/smp-webapp/src/main/java/ec/services/smp/_1/ErrorResponse.java b/smp-webapp/src/main/java/ec/services/smp/_1/ErrorResponse.java
new file mode 100644
index 000000000..8cc21f078
--- /dev/null
+++ b/smp-webapp/src/main/java/ec/services/smp/_1/ErrorResponse.java
@@ -0,0 +1,144 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 
+// See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2023.04.13 at 02:31:58 PM CEST 
+//
+
+
+package ec.services.smp._1;
+
+
+import javax.xml.bind.annotation.*;
+
+
+/**
+ * <p>Java class for ErrorResponseType complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="ErrorResponseType"&gt;
+ *   &lt;complexContent&gt;
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
+ *       &lt;sequence&gt;
+ *         &lt;element name="BusinessCode" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
+ *         &lt;element name="ErrorDescription" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt;
+ *         &lt;element name="ErrorUniqueId" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
+ *       &lt;/sequence&gt;
+ *     &lt;/restriction&gt;
+ *   &lt;/complexContent&gt;
+ * &lt;/complexType&gt;
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ErrorResponseType", propOrder = {
+    "businessCode",
+    "errorDescription",
+    "errorUniqueId"
+})
+@XmlRootElement(name = "ErrorResponse")
+public class ErrorResponse
+{
+
+    @XmlElement(name = "BusinessCode", required = true)
+    protected String businessCode;
+    @XmlElement(name = "ErrorDescription")
+    protected String errorDescription;
+    @XmlElement(name = "ErrorUniqueId", required = true)
+    protected String errorUniqueId;
+
+    /**
+     * Default no-arg constructor
+     * 
+     */
+    public ErrorResponse() {
+        super();
+    }
+
+    /**
+     * Fully-initialising value constructor
+     * 
+     */
+    public ErrorResponse(final String businessCode, final String errorDescription, final String errorUniqueId) {
+        this.businessCode = businessCode;
+        this.errorDescription = errorDescription;
+        this.errorUniqueId = errorUniqueId;
+    }
+
+    /**
+     * Gets the value of the businessCode property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getBusinessCode() {
+        return businessCode;
+    }
+
+    /**
+     * Sets the value of the businessCode property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setBusinessCode(String value) {
+        this.businessCode = value;
+    }
+
+    /**
+     * Gets the value of the errorDescription property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getErrorDescription() {
+        return errorDescription;
+    }
+
+    /**
+     * Sets the value of the errorDescription property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setErrorDescription(String value) {
+        this.errorDescription = value;
+    }
+
+    /**
+     * Gets the value of the errorUniqueId property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getErrorUniqueId() {
+        return errorUniqueId;
+    }
+
+    /**
+     * Sets the value of the errorUniqueId property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setErrorUniqueId(String value) {
+        this.errorUniqueId = value;
+    }
+
+
+}
diff --git a/smp-webapp/src/main/java/ec/services/smp/_1/ObjectFactory.java b/smp-webapp/src/main/java/ec/services/smp/_1/ObjectFactory.java
new file mode 100644
index 000000000..1b52ce3ef
--- /dev/null
+++ b/smp-webapp/src/main/java/ec/services/smp/_1/ObjectFactory.java
@@ -0,0 +1,47 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 
+// See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2023.04.13 at 02:31:58 PM CEST 
+//
+
+
+package ec.services.smp._1;
+
+import javax.xml.bind.annotation.XmlRegistry;
+
+
+/**
+ * This object contains factory methods for each 
+ * Java content interface and Java element interface 
+ * generated in the ec.services.smp._1 package. 
+ * <p>An ObjectFactory allows you to programatically 
+ * construct new instances of the Java representation 
+ * for XML content. The Java representation of XML 
+ * content can consist of schema derived interfaces 
+ * and classes representing the binding of schema 
+ * type definitions, element declarations and model 
+ * groups.  Factory methods for each of these are 
+ * provided in this class.
+ * 
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+
+    /**
+     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: ec.services.smp._1
+     * 
+     */
+    public ObjectFactory() {
+    }
+
+    /**
+     * Create an instance of {@link ErrorResponse }
+     * 
+     */
+    public ErrorResponse createErrorResponse() {
+        return new ErrorResponse();
+    }
+
+}
diff --git a/smp-webapp/src/main/java/ec/services/smp/_1/package-info.java b/smp-webapp/src/main/java/ec/services/smp/_1/package-info.java
new file mode 100644
index 000000000..06c3a70da
--- /dev/null
+++ b/smp-webapp/src/main/java/ec/services/smp/_1/package-info.java
@@ -0,0 +1,9 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 
+// See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2023.04.13 at 02:31:58 PM CEST 
+//
+
+@javax.xml.bind.annotation.XmlSchema(namespace = "ec:services:SMP:1.0", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package ec.services.smp._1;
-- 
GitLab