Skip to content

Commit

Permalink
Merge branch 'develop' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenzo-ingenito committed Nov 26, 2024
2 parents 418e78f + 57c6d95 commit 9aa542c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public enum ActionEnumType {
READ_METADATA(Constants.IniClientConstants.READ_ACTION, Constants.IniClientConstants.TREATMENT_PURPOSE_OF_USE,Constants.IniClientConstants.REGISTRY_STORED_QUERY_ACTION),
READ_REF_AND_METADATA(Constants.IniClientConstants.READ_ACTION, Constants.IniClientConstants.TREATMENT_PURPOSE_OF_USE,Constants.IniClientConstants.REGISTRY_STORED_QUERY_ACTION),
UPDATE(Constants.IniClientConstants.UPDATE_ACTION, Constants.IniClientConstants.TREATMENT_PURPOSE_OF_USE,Constants.IniClientConstants.REGISTER_DOCUMENT_SETB_ACTION),
UPDATE_V2(Constants.IniClientConstants.UPDATE_ACTION, Constants.IniClientConstants.TREATMENT_PURPOSE_OF_USE,Constants.IniClientConstants.UPDATE_SETB_ACTION),
UPDATE_V2(Constants.IniClientConstants.UPDATE_ACTION, Constants.IniClientConstants.UPDATE_PURPOSE_OF_USE,Constants.IniClientConstants.UPDATE_SETB_ACTION),
DELETE(Constants.IniClientConstants.DELETE_ACTION, Constants.IniClientConstants.SYSADMIN_PURPOSE_OF_USE,Constants.IniClientConstants.DELETE_DOCUMENT_ACTION),
REPLACE(Constants.IniClientConstants.CREATE_ACTION, Constants.IniClientConstants.TREATMENT_PURPOSE_OF_USE,Constants.IniClientConstants.REGISTER_DOCUMENT_SETB_ACTION);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import org.apache.commons.lang3.tuple.Pair;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import it.finanze.sanita.fse2.ms.iniclient.client.IConfigClient;
Expand All @@ -37,6 +38,9 @@ public class ConfigSRV implements IConfigSRV {

@Autowired
private ProfileUtility profiles;

@Value("${ms.config.refresh-rate:900000}")
private Long refreshRate;

private final Map<String, Pair<Long, String>> props;

Expand Down Expand Up @@ -191,7 +195,7 @@ private void init() {

@Override
public long getRefreshRate() {
return 300_000L;
return this.refreshRate;
}

private static final class Locks {
Expand Down
8 changes: 7 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,10 @@ ini.client.ds-cert.password=${DS_CERT_PATH}
ini.client.ds-cert.alias=${DS_CERT_ALIAS}

ms.url.gtw-config=${GTW_CONFIG_HOST}
ms.url.gtw-crash-program-validator=${GTW_CRASH_PROGRAM_HOST}
ms.url.gtw-crash-program-validator=${GTW_CRASH_PROGRAM_HOST}

#######################################
# GTW-CONFIG
#######################################
# default value 15 minutes
ms.config.refresh-rate=300000

0 comments on commit 9aa542c

Please sign in to comment.