From 5197c8b7b3cf7576f1198e4b59a7d6484e793107 Mon Sep 17 00:00:00 2001 From: Idan Amit Date: Mon, 15 Jan 2018 14:31:42 +0200 Subject: 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 --- .../sdc/fe/config/ConfigurationManager.java | 2 +- .../sdc/fe/config/DesignersConfiguration.java | 162 ++++++++++++--------- 2 files changed, 95 insertions(+), 69 deletions(-) (limited to 'common-app-api') 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 designersList; - - public Map getDesignersList() { - return designersList; - } - - public void setDesignersList(Map designersList) { - this.designersList = designersList; - } - - public DesignersConfiguration() { - this.designersList = new HashMap(); - } - - 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 designersList; + + public List getDesignersList() { + return designersList; + } + + public void setDesignersList(List 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 designerButtonLocation; + private List designerTabPresentation; + + public List getDesignerButtonLocation() { + return designerButtonLocation; + } + + public void setDesignerButtonLocation(List designerButtonLocation) { + this.designerButtonLocation = designerButtonLocation; + } + + public List getDesignerTabPresentation() { + return designerTabPresentation; + } + + public void setDesignerTabPresentation(List 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; + } + + } } -- cgit 1.2.3-korg