summaryrefslogtreecommitdiffstats
path: root/common-app-api/src/main/java/org/openecomp
diff options
context:
space:
mode:
Diffstat (limited to 'common-app-api/src/main/java/org/openecomp')
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/fe/config/PluginsConfiguration.java108
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 + ']';
- }
}