From 5d3d5961e99a3b34e99bb1f4d394ee61f55cfe13 Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Tue, 13 Feb 2018 14:08:02 +0100
Subject: [PATCH] parameter allowing to change admin the opacity

---
 .../model/user/ConfigurationElementType.java        | 13 +++++++++----
 .../api/configuration/ConfigurationRestImpl.java    |  1 -
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/model/src/main/java/lcsb/mapviewer/model/user/ConfigurationElementType.java b/model/src/main/java/lcsb/mapviewer/model/user/ConfigurationElementType.java
index bd0d5a4c40..53b7fc7154 100644
--- a/model/src/main/java/lcsb/mapviewer/model/user/ConfigurationElementType.java
+++ b/model/src/main/java/lcsb/mapviewer/model/user/ConfigurationElementType.java
@@ -134,12 +134,17 @@ public enum ConfigurationElementType {
    * Color used for undefined overlay values.
    */
   SIMPLE_COLOR_VAL("Overlay color when no values are defined", "00FF00", ConfigurationElementEditType.COLOR, false),
-  
+
   /**
-   * 
    * Color used for 0 overlay value.
    */
-  NEUTRAL_COLOR_VAL("Overlay color for value=0", "FFFFFF", ConfigurationElementEditType.COLOR, false);
+  NEUTRAL_COLOR_VAL("Overlay color for value=0", "FFFFFF", ConfigurationElementEditType.COLOR, false),
+
+  /**
+   * Opacity of data overlay objects in the frontend.
+   */
+  OVERLAY_OPACITY("Opacity used when drwaing data overlays (value between 0.0-1.0)", "0.8",
+      ConfigurationElementEditType.DOUBLE, false),;
 
   /**
    * Default value of the configuration parameter (it will be used only when value
@@ -165,7 +170,7 @@ public enum ConfigurationElementType {
    * @param commonName
    *          common name used for this parameter
    * @param editType
-   *          type defining how we want to edit this configuration param
+   *          type defining how we want to edit this configuration parameter
    * @param defaultVal
    *          default value assigned to this parameter
    */
diff --git a/rest-api/src/main/java/lcsb/mapviewer/api/configuration/ConfigurationRestImpl.java b/rest-api/src/main/java/lcsb/mapviewer/api/configuration/ConfigurationRestImpl.java
index 30d3f17139..581b00bb73 100644
--- a/rest-api/src/main/java/lcsb/mapviewer/api/configuration/ConfigurationRestImpl.java
+++ b/rest-api/src/main/java/lcsb/mapviewer/api/configuration/ConfigurationRestImpl.java
@@ -275,7 +275,6 @@ public class ConfigurationRestImpl extends BaseRestImpl {
   public List<Map<String, Object>> getPlugins(String token, String rootPath) {
     String path = rootPath + "/resources/js/plugins/";
     File folder = new File(path);
-    logger.debug(folder.getAbsolutePath());
     List<Map<String, Object>> result = new ArrayList<>();
     if (folder.exists()) {
       File[] listOfFiles = folder.listFiles();
-- 
GitLab