aboutsummaryrefslogtreecommitdiffstats
path: root/gui-editors/gui-editor-apex/src/main/java
AgeCommit message (Collapse)AuthorFilesLines
2024-07-15Uplift of spring framework dependenciesHEADmasteradheli.tavares3-167/+123
Issue-ID: POLICY-5074 Change-Id: I1632f156d594d6eb9880ecb96875e3e19e4e93cb Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2024-04-10Dependency management updateadheli.tavares1-2/+2
- including dependencies to pom.xml files only where they are used, avoiding extra dependencies being added in all packages. Issue-ID: POLICY-4945 Change-Id: Ib92fcae59a3da6fa3bf3d4a5e741ca1b012c4a40 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2023-10-03Upgrade Java 17waynedunican15-34/+40
Issue-ID: POLICY-4674 Change-Id: I7435d0d3ae94a3f0da33888f396706ae49b4d69c Signed-off-by: waynedunican <wayne.dunican@est.tech>
2023-02-02Replace Eclipselink with Hibernateliamfallon1-5/+3
Issue-ID: POLICY-4533 Change-Id: Ieda653947935448036b822960aae5498595ad4e0 Signed-off-by: liamfallon <liam.fallon@est.tech>
2022-03-14Upgrade apex-pdp version in Apex Editordanielhanrahan5-134/+40
Upgrade apex-pdp version to 2.7.1-SNAPSHOT Fix NullPointerException in ModelHandler::setUuidAndDescription Allow parsing models from policy_type_impl or apexPolicyModel Remove deprecated Task input and output field functionality Fix JS REST calls and tests after JAXB to Gson changes Fix bugs in Task Edit form relating to task logic edit area Issue-ID: POLICY-3990 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I4f506889df46619a0178ab99c99c73ec2fd5a1e3
2022-02-23Apex Editor using Spring Bootdanielhanrahan21-1191/+497
Changed Apex Editor to use Spring Boot (MVC) Changed all tests to use JUnit 5 Added more tests for policy upload feature Updated JS files to reflect JSON encoding change Added Apex Editor README Changed rest path to /policy/gui/v1/apex/editor Issue-ID: POLICY-3896 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I10f1ee3c40244a822a7032b4b24cb02060698fc3
2022-02-14Merge "Fix content-type for model download in Apex Editor"Liam Fallon1-1/+2
2022-02-14Fix race condition in apex-editor model uploaddanielhanrahan4-29/+33
Fixed a race condition in /Model/Upload endpoint caused by userId query param overwriting a global parameter. New behavior is for userId to override global param for that request only. Updated JavaDocs to reflect behavior. Added JUnit test to verify userId overriding. Fixed issue where upload success message was not included in response. Issue-ID: POLICY-3929 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ic1d78083778eef2df3675b3b4fbc1e41420da46f
2022-02-11Fix content-type for model download in Apex Editordanielhanrahan1-2/+3
Changed content-type to text/plain for model download Updated javadoc to say YAML not JSON Issue-ID: POLICY-3930 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Icb3f876003addc47e91b4f6e3b43d9c9c3dc7ee6
2022-02-02Policy Gui Code Coveragelapentafd1-1/+3
Adding Generated tag for lombok methods in ApexEditorParameters This will skip the sonar check on the @Data methods Issue-ID: POLICY-3351 Signed-off-by: lapentafd <francesco.lapenta@est.tech> Change-Id: I73ec9f47fb90182221aebd5129bf2da32ab06cad
2021-11-01Fix upload url arg name.andre.schmid1-1/+1
The current argument name for the upload-url is USERID, changing to UPLOAD_URL. Issue-ID: POLICY-3797 Signed-off-by: andre.schmid <andre.schmid@est.tech> Change-Id: I59ae27f6a3908c98d897b586668ae7b921366544
2021-07-16Use lombok annotations in guiJim Hahn14-566/+58
Issue-ID: POLICY-3395 Change-Id: I7820877522875a3caf47e3b7409eb4f7fb15ba2b Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-24Update gui for checkstyle 8.43liamfallon2-11/+11
Issue-ID: POLICY-3206 Change-Id: I5b80398352d03a0fe2853690b6b0d3019d204a7e Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-06-14Fix sonar in policy/guiRam Krishna Verma5-11/+14
use "var" for local variables Issue-ID: POLICY-3077 Change-Id: I6e31317bfda3d2b9bdde038cec709a3398f2f655 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-05-10Fix sonars in policy-guiJim Hahn14-65/+62
Fixed: - use "var" Only fixed the ones I saw visually, as SonarLint wouldn't run - something about missing node.js. Issue-ID: POLICY-3094 Change-Id: I594d424b42ce446d86724d75b1dd9ec868c14f2b Signed-off-by: Jim Hahn <jrh3@att.com>
2021-04-23Fix gui-editor-apex fails to startarkadiusz.adamski1-22/+26
- fix NullPointerException when gui-editor is started with command line - clean up code Issue-ID: POLICY-3235 Signed-off-by: arkadiusz.adamski <aadamski@est.tech> Change-Id: Ia05a4a808c3fa266e702f627959a382b0344f5db
2021-03-29Fix sonarqube code Bugmkidd3-10/+8
ApexEditorParameters has a URI that sonar does not like, hard coding the leading forward slash removes the complaint ApexEditorMain was receiving args and a print stream in the form of System.err and then System.out, both of these were null values, while Sonar sees System.out or err as a bug as it should be a logger, simply passing null in its place is not an issue to sonar BeanBase.java Removed an if statement that always asserted to be true, as it is inside an if statement that confirmed that condition. removed an accessibility change as sonar sees this as a violation Issue-ID: POLICY-3095 Signed-off-by: mkidd <michael.kidd@est.tech> Change-Id: I1bbdfe9cc6db085195e95da3dbfbc8b29d9a5ff5 Signed-off-by: mkidd <michael.kidd@est.tech>
2021-02-19Fix sonars in guiJim Hahn9-136/+46
Addressed the following issues (java only): - assignment to static field - expression is always true - duplicate character in regex - duplicate code - remove Thread.sleep() from junit test Issue-ID: POLICY-3063 Change-Id: I70951ed47defad5baa6c957852663688e51fa88a Signed-off-by: Jim Hahn <jrh3@att.com>
2020-09-30Pick up userId from apex editor URLliamfallon2-2/+8
The userId must be picked up from the URL passed to the policy editor and then passed to the server. Issue-ID: POLICY-2850 Change-Id: I98948f2e0a2bf8090926751ee98c26c46d272fcf Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-09-11Add TOSCA support to Apex editorliamfallon17-1219/+461
The APEX editor now loads, saves, and downloads files in TOSCA format, the same as the apex-pdp does. The non-standard TOSCA handling for file upload has been refactored to be aligned with the Policy Frameowkr TOSCA support. Issue-ID: POLICY-2621 Change-Id: I1ec7475cbcc6ffc23de92687c9f284ac7dfbdd80 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-09-08Cosmetic changes to the apex-editor GUIliamfallon2-0/+2
Some minor changes to remove some eclipse warnings and to tidy the the tets and formatting in the APEX policy editor GUI. Issue-ID: POLICY-2621 Change-Id: Ib9b9b054fbe146feec4e477434097094e8ecae26 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-08-10Passing userId to upload policyKrupaNagabhushan2-11/+13
Issue-ID: POLICY-2751 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: Ifc91bba369161a63f2ad759dcdc014bb12837e88
2020-08-07Upload policy featureandre.schmid15-8/+1105
Implements an upload feature that can be enable/disabled through configuration properties. An upload endpoint must be provided also by configuration. The upload has similar feature as the download, but it sends the file to the provided endpoint instead, converting it to TOSCA YAML. Creates an configuration endpoint so the front-end can read it. Introduces a pub/sub feature in the front-end so it can asynchronous read configuration information and send configuration ready message to components that depends on it. Issue-ID: POLICY-2751 Signed-off-by: andre.schmid <andre.schmid@est.tech> Change-Id: I5e8e91616a7d4dc69e6739604fcd36528cce0028
2020-07-17Move apex policy editor to policy-guiliamfallon34-0/+5785
This review moves the code for the apex policy editor from the apex repo to the GUI repo. The docker part of the build will be moved in the next review because it is intertwined with the other two legacy apex GUIs and needs to be disentangled. Subsequent reviews on the apex repo will remove this code from there. Issue-ID: POLICY-2621 Change-Id: Ib9a43f463b839201656208a48ab48869a19f963a Signed-off-by: liamfallon <liam.fallon@est.tech>