diff options
author | ilanap <ilanap@amdocs.com> | 2019-11-28 11:13:24 +0200 |
---|---|---|
committer | Oren Kleks <oren.kleks@amdocs.com> | 2019-12-05 09:19:40 +0000 |
commit | ee4c4d72ed2118ea44dd5d83e1cf1677b6ebb03c (patch) | |
tree | a1558696a8576d1e1d1e0665ebefec81398e3be5 /common-app-api | |
parent | cc8f8c056b99d530d48190b67846be3705a4225f (diff) |
Add Option to proxy to plugins
Added option to proxy the plugins throught the catalog proxy. Remove hardcoded redirect to workflow and added to the plugin configuration.
Issue-ID: SDC-2691
Signed-off-by: ilanap <ilanap@amdocs.com>
Change-Id: Ica479ff00e1a8c281b9280b5495ac022172775c4
Signed-off-by: ilanap <ilanap@amdocs.com>
Diffstat (limited to 'common-app-api')
-rw-r--r-- | common-app-api/src/main/java/org/openecomp/sdc/fe/config/PluginsConfiguration.java | 108 |
1 files changed, 13 insertions, 95 deletions
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 449c9eaccc..55b0ea0db9 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,132 +20,50 @@ 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<Plugin> pluginsList; private Integer connectionTimeout; - public List<Plugin> getPluginsList() { - return pluginsList; - } - - public void setPluginsList(List<Plugin> 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<String, PluginDisplayOptions> 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<String, PluginDisplayOptions> getPluginDisplayOptions() { - return pluginDisplayOptions; - } - - public void setPluginDisplayOptions(Map<String, PluginDisplayOptions> pluginDisplayOptions) { - this.pluginDisplayOptions = pluginDisplayOptions; - } - } + @Getter + @Setter + @ToString public static class PluginDisplayOptions { - private String displayName; private List<String> displayContext; private List<String> displayRoles; - - public String getDisplayName() { - return displayName; - } - - public void setDisplayName(String displayName) { - this.displayName = displayName; - } - - public List<String> getDisplayContext() { - return displayContext; - } - - public void setDisplayContext(List<String> displayContext) { - this.displayContext = displayContext; - } - - public List<String> getDisplayRoles() { - return displayRoles; - } - - public void setDisplayRoles(List<String> 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 + ']'; - } } |