From f13ad6348df59f8883c9a3f86a7ef81ee4cb089c Mon Sep 17 00:00:00 2001 From: aribeiro Date: Tue, 17 Dec 2019 10:23:13 +0000 Subject: Revert "Add Option to proxy to plugins" This reverts commit ee4c4d72 Issue-ID: SDC-2648 Change-Id: I1f6cba80d3fb803530573c75f2fc54ca207e768a Signed-off-by: aribeiro --- .../sdc/fe/config/PluginsConfiguration.java | 108 ++++++++++++++++++--- 1 file changed, 95 insertions(+), 13 deletions(-) (limited to 'common-app-api/src/main/java') diff --git a/common-app-api/src/main/java/org/openecomp/sdc/fe/config/PluginsConfiguration.java b/common-app-api/src/main/java/org/openecomp/sdc/fe/config/PluginsConfiguration.java index 55b0ea0db9..449c9eaccc 100644 --- a/common-app-api/src/main/java/org/openecomp/sdc/fe/config/PluginsConfiguration.java +++ b/common-app-api/src/main/java/org/openecomp/sdc/fe/config/PluginsConfiguration.java @@ -20,50 +20,132 @@ package org.openecomp.sdc.fe.config; -import lombok.Getter; -import lombok.Setter; -import lombok.ToString; import org.openecomp.sdc.common.api.BasicConfiguration; import java.util.ArrayList; import java.util.List; import java.util.Map; -@Getter -@Setter -@ToString public class PluginsConfiguration extends BasicConfiguration { private List pluginsList; private Integer connectionTimeout; + public List getPluginsList() { + return pluginsList; + } + + public void setPluginsList(List pluginsList) { + this.pluginsList = pluginsList; + } + + public Integer getConnectionTimeout() { + return connectionTimeout; + } + + public void setConnectionTimeout(Integer connectionTimeout) { + this.connectionTimeout = connectionTimeout; + } + public PluginsConfiguration() { this.pluginsList = new ArrayList<>(); } - @Getter - @Setter public static class Plugin { + private String pluginId; private String pluginDiscoveryUrl; private String pluginSourceUrl; private String pluginStateUrl; - private String pluginFeProxyUrl; // this is optional in case it is different from the source url. - private String pluginProxyRedirectPath; private Map pluginDisplayOptions; private boolean isOnline; + public String getPluginId() { + return pluginId; + } + + public void setPluginId(String pluginId) { + this.pluginId = pluginId; + } + + public String getPluginDiscoveryUrl() { + return pluginDiscoveryUrl; + } + + public void setPluginDiscoveryUrl(String pluginDiscoveryUrl) { + this.pluginDiscoveryUrl = pluginDiscoveryUrl; + } + + public String getPluginSourceUrl() { + return pluginSourceUrl; + } + + public void setPluginSourceUrl(String pluginSourceUrl) { + this.pluginSourceUrl = pluginSourceUrl; + } + + public String getPluginStateUrl() { + return pluginStateUrl; + } + + public void setPluginStateUrl(String pluginStateUrl) { + this.pluginStateUrl = pluginStateUrl; + } + + public Map getPluginDisplayOptions() { + return pluginDisplayOptions; + } + + public void setPluginDisplayOptions(Map pluginDisplayOptions) { + this.pluginDisplayOptions = pluginDisplayOptions; + } + } - @Getter - @Setter - @ToString public static class PluginDisplayOptions { + private String displayName; private List displayContext; private List displayRoles; + + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public List getDisplayContext() { + return displayContext; + } + + public void setDisplayContext(List displayContext) { + this.displayContext = displayContext; + } + + public List getDisplayRoles() { + return displayRoles; + } + + public void setDisplayRoles(List displayRoles) { + this.displayRoles = displayRoles; + } + + @Override + public String toString() { + return "PluginDisplayOptions[" + + "displayName='" + displayName + + ", displayContext=" + displayContext + + ", displayRoles=" + displayRoles + + ']'; + } } + @Override + public String toString() { + return "PluginsConfiguration[" + "pluginsList=" + pluginsList + ", connectionTimeout=" + connectionTimeout + ']'; + } } -- cgit 1.2.3-korg