Skip to content

Commit ce6b006

Browse files
feat(Vulnerability): Added svm link for external id
1 parent d890b6e commit ce6b006

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

rest/resource-server/src/main/java/org/eclipse/sw360/rest/resourceserver/Sw360ResourceServer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ public class Sw360ResourceServer extends SpringBootServletInitializer {
103103
private static final String SERVER_PATH_URL;
104104
private static final String APPLICATION_NAME = "/resource";
105105
private static final Map<Object, Object> versionInfo;
106+
public static final String SVM_NOTIFICATION_URL;
106107

107108
static {
108109
Properties props = CommonUtils.loadProperties(Sw360ResourceServer.class, SW360_PROPERTIES_FILE_PATH);
@@ -121,6 +122,7 @@ public class Sw360ResourceServer extends SpringBootServletInitializer {
121122
CONFIG_WRITE_ACCESS_USERGROUP = UserGroup.valueOf(props.getProperty("rest.write.access.usergroup", DEFAULT_WRITE_ACCESS_USERGROUP));
122123
CONFIG_ADMIN_ACCESS_USERGROUP = UserGroup.valueOf(props.getProperty("rest.admin.access.usergroup", DEFAULT_ADMIN_ACCESS_USERGROUP));
123124
SERVER_PATH_URL = props.getProperty("backend.url", "http://localhost:8080");
125+
SVM_NOTIFICATION_URL = props.getProperty("svm.notification.url", "");
124126

125127
versionInfo = new HashMap<>();
126128
Properties properties = CommonUtils.loadProperties(Sw360ResourceServer.class, VERSION_INFO_PROPERTIES_FILE, false);

rest/resource-server/src/main/java/org/eclipse/sw360/rest/resourceserver/configuration/SW360ConfigurationsService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public Map<String, String> getSW360ConfigFromProperties() {
5454
configFromProperties.put("rest.apitoken.read.validity.days", String.valueOf(Sw360ResourceServer.API_TOKEN_MAX_VALIDITY_READ_IN_DAYS));
5555
configFromProperties.put("rest.apitoken.write.validity.days", String.valueOf(Sw360ResourceServer.API_TOKEN_MAX_VALIDITY_WRITE_IN_DAYS));
5656
configFromProperties.put("ui.rest.apitoken.write.generator.enable", String.valueOf(Sw360ResourceServer.API_WRITE_TOKEN_GENERATOR_ENABLED));
57+
configFromProperties.put("svm.notification.url", String.valueOf(Sw360ResourceServer.SVM_NOTIFICATION_URL));
5758
return configFromProperties;
5859
}
5960

0 commit comments

Comments
 (0)