aboutsummaryrefslogtreecommitdiffstats
path: root/common-app-api/src/main
diff options
context:
space:
mode:
authorIdan Amit <ia096e@intl.att.com>2018-01-18 19:07:38 +0200
committerIdan Amit <ia096e@intl.att.com>2018-01-21 06:52:00 +0000
commit30e728d280b77193500a7f0941db336ee60b80a6 (patch)
treef57f86948f47f3dd2333e21e12e5cdc1ccaeff33 /common-app-api/src/main
parenta7735509a29580d0bf8a9eac92f4402940b74517 (diff)
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 <ia096e@intl.att.com>
Diffstat (limited to 'common-app-api/src/main')
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/fe/config/DesignersConfiguration.java52
1 files changed, 33 insertions, 19 deletions
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<String> designerButtonLocation;
- private List<String> designerTabPresentation;
-
- public List<String> getDesignerButtonLocation() {
- return designerButtonLocation;
- }
+ private Map<String, DesignerDisplayOptions> designerDisplayOptions;
- public void setDesignerButtonLocation(List<String> designerButtonLocation) {
- this.designerButtonLocation = designerButtonLocation;
+ public Map<String, DesignerDisplayOptions> getDesignerDisplayOptions() {
+ return designerDisplayOptions;
}
- public List<String> getDesignerTabPresentation() {
- return designerTabPresentation;
- }
-
- public void setDesignerTabPresentation(List<String> designerTabPresentation) {
- this.designerTabPresentation = designerTabPresentation;
+ public void setDesignerDisplayOptions(Map<String, DesignerDisplayOptions> 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<String> validResourceTypes;
+
+ public String getDisplayName() {
+ return displayName;
+ }
+
+ public void setDisplayName(String displayName) {
+ this.displayName = displayName;
+ }
+
+ public List<String> getValidResourceTypes() {
+ return validResourceTypes;
+ }
+
+ public void setValidResourceTypes(List<String> validResourceTypes) {
+ this.validResourceTypes = validResourceTypes;
+ }
+ }
+
}