From 30e728d280b77193500a7f0941db336ee60b80a6 Mon Sep 17 00:00:00 2001 From: Idan Amit Date: Thu, 18 Jan 2018 19:07:38 +0200 Subject: Update designer configuraiton file Updated the designer configuration file to support the new display options Made sure that the old code still works Change-Id: Ia63cb89b0f8cb92fc86e0804afe7e2c2caea0541 Issue-ID: SDC-938 Signed-off-by: Idan Amit --- .../sdc/fe/config/DesignersConfiguration.java | 52 ++++++++++++++-------- 1 file changed, 33 insertions(+), 19 deletions(-) (limited to 'common-app-api/src/main/java') 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 6803120341..1b44d727cd 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 @@ -2,6 +2,7 @@ package org.openecomp.sdc.fe.config; import java.util.ArrayList; import java.util.List; +import java.util.Map; import org.openecomp.sdc.common.api.BasicConfiguration; @@ -23,29 +24,20 @@ public class DesignersConfiguration extends BasicConfiguration { public static class Designer { - private String displayName; + private String designerId; 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; - } + private Map designerDisplayOptions; - public void setDesignerButtonLocation(List designerButtonLocation) { - this.designerButtonLocation = designerButtonLocation; + public Map getDesignerDisplayOptions() { + return designerDisplayOptions; } - public List getDesignerTabPresentation() { - return designerTabPresentation; - } - - public void setDesignerTabPresentation(List designerTabPresentation) { - this.designerTabPresentation = designerTabPresentation; + public void setDesignerDisplayOptions(Map designerDisplayOptions) { + this.designerDisplayOptions = designerDisplayOptions; } public String getDesignerStateUrl() { @@ -64,12 +56,12 @@ public class DesignersConfiguration extends BasicConfiguration { this.designerProtocol = designerProtocol; } - public String getDisplayName() { - return displayName; + public String getDesignerId() { + return designerId; } - public void setDisplayName(String displayName) { - this.displayName = displayName; + public void setDesignerId(String designerId) { + this.designerId = designerId; } public String getDesignerHost() { @@ -98,6 +90,28 @@ public class DesignersConfiguration extends BasicConfiguration { } + public static class DesignerDisplayOptions { + + private String displayName; + private List validResourceTypes; + + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public List getValidResourceTypes() { + return validResourceTypes; + } + + public void setValidResourceTypes(List validResourceTypes) { + this.validResourceTypes = validResourceTypes; + } + } + } -- cgit 1.2.3-korg