summaryrefslogtreecommitdiffstats
path: root/common-app-api/src/main/java
diff options
context:
space:
mode:
authorIdan Amit <ia096e@intl.att.com>2018-01-15 14:31:42 +0200
committerMichael Lando <ml636r@att.com>2018-01-16 16:58:47 +0000
commit5197c8b7b3cf7576f1198e4b59a7d6484e793107 (patch)
tree55e938e420d863fac9f1c92901f4e7c2e34787c4 /common-app-api/src/main/java
parentfd19ae43d9f057f9ce51d48f95ef3f5f60173f22 (diff)
Designer-view component for top-nav
Create a designer-view component for opening a designer view from the top-nav Updated the API to return the designers as a list and not as an object Created a designer-frame component that will get a designer url to open in the dedicated position Change-Id: Ic42f7695277e88aacdeaa74d4d0f95b49ce44999 Issue-ID: SDC-884 Signed-off-by: Idan Amit <ia096e@intl.att.com>
Diffstat (limited to 'common-app-api/src/main/java')
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/fe/config/ConfigurationManager.java2
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/fe/config/DesignersConfiguration.java162
2 files changed, 95 insertions, 69 deletions
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/fe/config/ConfigurationManager.java b/common-app-api/src/main/java/org/openecomp/sdc/fe/config/ConfigurationManager.java
index 0e1aabcccf..807189dabb 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/fe/config/ConfigurationManager.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/fe/config/ConfigurationManager.java
@@ -94,7 +94,7 @@ public class ConfigurationManager implements FileChangeCallback, IEcompConfigura
public DesignersConfiguration getDesignersConfiguration() {
- log.info("requested designers configuration and got this:{}", (DesignersConfiguration) configurations.get(getKey(DesignersConfiguration.class)));
+ log.info("requested designers configuration and got this:{}", configurations.get(getKey(DesignersConfiguration.class)));
return (DesignersConfiguration) configurations.get(getKey(DesignersConfiguration.class));
}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/fe/config/DesignersConfiguration.java b/common-app-api/src/main/java/org/openecomp/sdc/fe/config/DesignersConfiguration.java
index 1b89ba02fd..6803120341 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/fe/config/DesignersConfiguration.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/fe/config/DesignersConfiguration.java
@@ -1,76 +1,102 @@
package org.openecomp.sdc.fe.config;
-import java.util.HashMap;
-import java.util.Map;
+import java.util.ArrayList;
+import java.util.List;
import org.openecomp.sdc.common.api.BasicConfiguration;
-public class DesignersConfiguration extends BasicConfiguration {
-
- private Map<String,Designer> designersList;
-
- public Map<String,Designer> getDesignersList() {
- return designersList;
- }
-
- public void setDesignersList(Map<String,Designer> designersList) {
- this.designersList = designersList;
- }
-
- public DesignersConfiguration() {
- this.designersList = new HashMap<String, Designer>();
- }
-
- public static class Designer {
-
- private String displayName;
- private String designerHost;
- private Integer designerPort;
- private String designerPath;
- private String designerProtocol;
-
-
- public String getDesignerProtocol() {
- return designerProtocol;
- }
-
- public void setDesignerProtocol(String designerProtocol) {
- this.designerProtocol = designerProtocol;
- }
-
- public String getDisplayName() {
- return displayName;
- }
-
- public void setDisplayName(String displayName) {
- this.displayName = displayName;
- }
-
- public String getDesignerHost() {
- return designerHost;
- }
-
- public void setDesignerHost(String designerHost) {
- this.designerHost = designerHost;
- }
-
- public Integer getDesignerPort() {
- return designerPort;
- }
-
- public void setDesignerPort(Integer designerPort) {
- this.designerPort = designerPort;
- }
-
- public String getDesignerPath() {
- return designerPath;
- }
-
- public void setDesignerPath(String designerPath) {
- this.designerPath = designerPath;
- }
-
- }
+public class DesignersConfiguration extends BasicConfiguration {
+
+ private List<Designer> designersList;
+
+ public List<Designer> getDesignersList() {
+ return designersList;
+ }
+
+ public void setDesignersList(List<Designer> designersList) {
+ this.designersList = designersList;
+ }
+
+ public DesignersConfiguration() {
+ this.designersList = new ArrayList<>();
+ }
+
+ public static class Designer {
+
+ private String displayName;
+ private String designerHost;
+ private Integer designerPort;
+ private String designerPath;
+ private String designerStateUrl;
+ private String designerProtocol;
+ private List<String> designerButtonLocation;
+ private List<String> designerTabPresentation;
+
+ public List<String> getDesignerButtonLocation() {
+ return designerButtonLocation;
+ }
+
+ public void setDesignerButtonLocation(List<String> designerButtonLocation) {
+ this.designerButtonLocation = designerButtonLocation;
+ }
+
+ public List<String> getDesignerTabPresentation() {
+ return designerTabPresentation;
+ }
+
+ public void setDesignerTabPresentation(List<String> designerTabPresentation) {
+ this.designerTabPresentation = designerTabPresentation;
+ }
+
+ public String getDesignerStateUrl() {
+ return designerStateUrl;
+ }
+
+ public void setDesignerStateUrl(String designerStateUrl) {
+ this.designerStateUrl = designerStateUrl;
+ }
+
+ public String getDesignerProtocol() {
+ return designerProtocol;
+ }
+
+ public void setDesignerProtocol(String designerProtocol) {
+ this.designerProtocol = designerProtocol;
+ }
+
+ public String getDisplayName() {
+ return displayName;
+ }
+
+ public void setDisplayName(String displayName) {
+ this.displayName = displayName;
+ }
+
+ public String getDesignerHost() {
+ return designerHost;
+ }
+
+ public void setDesignerHost(String designerHost) {
+ this.designerHost = designerHost;
+ }
+
+ public Integer getDesignerPort() {
+ return designerPort;
+ }
+
+ public void setDesignerPort(Integer designerPort) {
+ this.designerPort = designerPort;
+ }
+
+ public String getDesignerPath() {
+ return designerPath;
+ }
+
+ public void setDesignerPath(String designerPath) {
+ this.designerPath = designerPath;
+ }
+
+ }
}