diff --git a/nachrichten-manager/src/main/java/de/ozgcloud/nachrichten/attributes/ClientAttributeRemoteService.java b/nachrichten-manager/src/main/java/de/ozgcloud/nachrichten/attributes/ClientAttributeRemoteService.java index 1263c973b8dacb71b7d05752974c99d0f3580be7..a74bb37c1ee859489e48a483e344ba3b1b997736 100644 --- a/nachrichten-manager/src/main/java/de/ozgcloud/nachrichten/attributes/ClientAttributeRemoteService.java +++ b/nachrichten-manager/src/main/java/de/ozgcloud/nachrichten/attributes/ClientAttributeRemoteService.java @@ -36,7 +36,7 @@ import net.devh.boot.grpc.client.inject.GrpcClient; @Service class ClientAttributeRemoteService { - @GrpcClient("pluto") + @GrpcClient("vorgang-manager") private ClientAttributeServiceBlockingStub stub; public void setBooleanReadOnlyClientAttribute(String vorgangId, String attributeName, boolean value) { diff --git a/nachrichten-manager/src/main/java/de/ozgcloud/nachrichten/postfach/PostfachScheduler.java b/nachrichten-manager/src/main/java/de/ozgcloud/nachrichten/postfach/PostfachScheduler.java index 71c712b286a1b8e70d35a499ee88c22a2b7b0286..58dfa87a7ff91e447a0f45574fa67e548df5a70a 100644 --- a/nachrichten-manager/src/main/java/de/ozgcloud/nachrichten/postfach/PostfachScheduler.java +++ b/nachrichten-manager/src/main/java/de/ozgcloud/nachrichten/postfach/PostfachScheduler.java @@ -35,14 +35,14 @@ import net.javacrumbs.shedlock.spring.annotation.SchedulerLock; @Component @Profile("!itcase") @ConditionalOnBean(PostfachRemoteService.class) -@ConditionalOnProperty(name = { "kop.osi.postfach.scheduler.enabled" }) +@ConditionalOnProperty(name = { "ozgcloud.osi.postfach.scheduler.enabled" }) class PostfachScheduler { @Autowired private PostfachService service; - @Scheduled(initialDelayString = "${kop.osi.postfach.scheduler.initialDelay:5000}", // - fixedDelayString = "${kop.osi.postfach.scheduler.fixedDelay:900000}") + @Scheduled(initialDelayString = "${ozgcloud.osi.postfach.scheduler.initialDelay:5000}", // + fixedDelayString = "${ozgcloud.osi.postfach.scheduler.fixedDelay:900000}") @SchedulerLock(name = "PostfachScheduler") void runGetMessagesTask() { service.fetchAndPersistReplies(); diff --git a/notification-manager/src/main/java/de/ozgcloud/notification/command/CommandRemoteService.java b/notification-manager/src/main/java/de/ozgcloud/notification/command/CommandRemoteService.java index 21bfd4983be83641f5abd667bdf2b875dd03dceb..5b13781d2170cd81c15d79b3d12ef6bc42fca4e7 100644 --- a/notification-manager/src/main/java/de/ozgcloud/notification/command/CommandRemoteService.java +++ b/notification-manager/src/main/java/de/ozgcloud/notification/command/CommandRemoteService.java @@ -33,7 +33,7 @@ import net.devh.boot.grpc.client.inject.GrpcClient; @Service class CommandRemoteService { - @GrpcClient("pluto") + @GrpcClient("vorgang-manager") private CommandServiceBlockingStub stub; @Autowired private CommandMapper mapper; diff --git a/notification-manager/src/main/java/de/ozgcloud/notification/postfach/PostfachRemoteService.java b/notification-manager/src/main/java/de/ozgcloud/notification/postfach/PostfachRemoteService.java index dcbdca72ee0c5f07f2da1885608e7989db7240e4..2daaaa7b281e39babd4ce02f1253d0622699be22 100644 --- a/notification-manager/src/main/java/de/ozgcloud/notification/postfach/PostfachRemoteService.java +++ b/notification-manager/src/main/java/de/ozgcloud/notification/postfach/PostfachRemoteService.java @@ -33,7 +33,7 @@ import net.devh.boot.grpc.client.inject.GrpcClient; @Service class PostfachRemoteService { - @GrpcClient("pluto") + @GrpcClient("vorgang-manager") private PostfachServiceBlockingStub postfachServiceBlockingStub; public boolean isPostfachConfigured() { diff --git a/vorgang-manager-server/src/main/java/de/ozgcloud/vorgang/registry/RegistryScheduler.java b/vorgang-manager-server/src/main/java/de/ozgcloud/vorgang/registry/RegistryScheduler.java index 1803190a54feb58117489fbf8c10ca35e29a0d3c..171439dbfbd3f234b2b5801b322cb963379f7972 100644 --- a/vorgang-manager-server/src/main/java/de/ozgcloud/vorgang/registry/RegistryScheduler.java +++ b/vorgang-manager-server/src/main/java/de/ozgcloud/vorgang/registry/RegistryScheduler.java @@ -37,7 +37,7 @@ import net.javacrumbs.shedlock.spring.annotation.SchedulerLock; @Profile("!itcase") @Component -@ConditionalOnProperty(prefix = "kop.vorgangmanager", name = { "address" }) +@ConditionalOnProperty(prefix = "ozgcloud.vorgang-manager", name = { "address" }) @Log4j2 class RegistryScheduler { @Autowired @@ -46,8 +46,8 @@ class RegistryScheduler { @Autowired private UserConfigService userConfigService; - @Scheduled(fixedDelayString = "${kop.vorgangmanager.registry.scheduler.fixedDelay:5}", // - initialDelayString = "${kop.vorgangmanager.registry.scheduler.initialDelay:5}", // + @Scheduled(fixedDelayString = "${ozgcloud.vorgang-manager.registry.scheduler.fixedDelay:5}", // + initialDelayString = "${ozgcloud.vorgang-manager.registry.scheduler.initialDelay:5}", // timeUnit = TimeUnit.MINUTES) @SchedulerLock(name = "RegistryScheduler") void register() { diff --git a/vorgang-manager-server/src/main/java/de/ozgcloud/vorgang/registry/RegistryService.java b/vorgang-manager-server/src/main/java/de/ozgcloud/vorgang/registry/RegistryService.java index d97072a66b3e5bce8661142c24c78b9271a4115d..e2e8475bf30d833e339a9f688503611b2569ff98 100644 --- a/vorgang-manager-server/src/main/java/de/ozgcloud/vorgang/registry/RegistryService.java +++ b/vorgang-manager-server/src/main/java/de/ozgcloud/vorgang/registry/RegistryService.java @@ -38,6 +38,6 @@ class RegistryService { void registerAddress(List<String> supportedOrganisationsEinheiten, Optional<String> vorgangManagerAddress) { vorgangManagerAddress.ifPresentOrElse(address -> { zufiRemoteService.registerVorgangManager(supportedOrganisationsEinheiten, address); - }, () -> LOG.error("Property kop.vorgangmanager.address not set. Not registering this VorgangsManager")); + }, () -> LOG.error("Property ozgcloud.vorgang-manager.address not set. Not registering this VorgangsManager")); } } diff --git a/vorgang-manager-server/src/main/resources/META-INF/additional-spring-configuration-metadata.json b/vorgang-manager-server/src/main/resources/META-INF/additional-spring-configuration-metadata.json index 0d17886a48d9b064edb52ff10745cddbd6b1b4ea..55d5b0ba0f29271e746c4ddf66683ae43c697dc3 100644 --- a/vorgang-manager-server/src/main/resources/META-INF/additional-spring-configuration-metadata.json +++ b/vorgang-manager-server/src/main/resources/META-INF/additional-spring-configuration-metadata.json @@ -1,41 +1,36 @@ {"properties": [ { - "name": "pluto.redirect.mail-from", + "name": "ozgcloud.redirect.mail-from", "type": "java.lang.String", "description": "Mail address for forwarding" }, { - "name": "pluto.production", + "name": "ozgcloud.production", "type": "java.lang.String", "description": "Enables/Disables the production mode. (default: false)" }, { - "name": "pluto.forwarding.lninfo.url", + "name": "ozgcloud.forwarding.lninfo.url", "type": "java.lang.String", "description": "Source of landesnetzinfo given as url(http://) or filepath(classpath:)" }, { - "name": "pluto.forwarding.reply-to", + "name": "ozgcloud.forwarding.reply-to", "type": "java.lang.String", "description": "Mail replyTo address for forwarding" }, { - "name": "kop.production", - "type": "java.lang.String", - "description": "Enable production mode" - }, - { - "name": "kop.osi.postfach.scheduler.enabled", + "name": "ozgcloud.osi.postfach.scheduler.enabled", "type": "java.lang.String", "description": "Enable or disable polling of osi postfach for new messages" }, { - "name": "kop.usermanager.url", + "name": "ozgcloud.usermanager.url", "type": "java.lang.String", "description": "Url of the user manager migration endpoint" }, { - "name": "kop.notification.mail-from", + "name": "ozgcloud.notification.mail-from", "type": "java.lang.String", "description": "The sender email address used in notification emails" } diff --git a/vorgang-manager-server/src/test/java/de/ozgcloud/nachrichten/postfach/PostfachMailITCase.java b/vorgang-manager-server/src/test/java/de/ozgcloud/nachrichten/postfach/PostfachMailITCase.java index 85af4f0ad64d7b762892a9daf19143bc8237a6e7..55c083e8db9ce99f261a081fb7205c42ba1f9ec1 100644 --- a/vorgang-manager-server/src/test/java/de/ozgcloud/nachrichten/postfach/PostfachMailITCase.java +++ b/vorgang-manager-server/src/test/java/de/ozgcloud/nachrichten/postfach/PostfachMailITCase.java @@ -65,10 +65,10 @@ import de.ozgcloud.vorgang.files.OzgFile; import io.grpc.stub.StreamObserver; @SpringBootTest(classes = { VorgangManagerServerApplication.class, OsiPostfachProperties.class }, properties = { - "kop.osi.postfach.proxyapi.url=http://localhost/ApiProxy/V1/Message", - "kop.osi.postfach.proxyapi.key=1234", - "kop.osi.postfach.proxyapi.realm=test-realm", - "kop.osi.postfach.notification.mail-from=test@local.host" + "ozgcloud.osi.postfach.proxyapi.url=http://localhost/ApiProxy/V1/Message", + "ozgcloud.osi.postfach.proxyapi.key=1234", + "ozgcloud.osi.postfach.proxyapi.realm=test-realm", + "ozgcloud.osi.postfach.notification.mail-from=test@local.host" }) @WithMockUser @DataITCase diff --git a/vorgang-manager-server/src/test/java/de/ozgcloud/nachrichten/postfach/osi/OsiPostfachApiTestCase.java b/vorgang-manager-server/src/test/java/de/ozgcloud/nachrichten/postfach/osi/OsiPostfachApiTestCase.java index d5498bcb7abc35fd3d07817d6e64ef95feab6b80..a2ddd46044afa8b16fde74972c61fcc3b87525af 100644 --- a/vorgang-manager-server/src/test/java/de/ozgcloud/nachrichten/postfach/osi/OsiPostfachApiTestCase.java +++ b/vorgang-manager-server/src/test/java/de/ozgcloud/nachrichten/postfach/osi/OsiPostfachApiTestCase.java @@ -42,10 +42,10 @@ import de.ozgcloud.vorgang.VorgangManagerServerApplication; @SpringBootTest( classes = { VorgangManagerServerApplication.class, OsiPostfachProperties.class }, properties = { - "kop.osi.postfach.proxyapi.url=https://postfach.serviceportal-stage.schleswig-holstein.de/ApiProxy/V1/Message", - "kop.osi.postfach.proxyapi.key=db03d369-438a-4c1a-bcb8-9de951f5ef41", - "kop.osi.postfach.proxyapi.realm=urn:osp:names:realm:stage:sh", - "kop.osi.postfach.scheduler.enabled=false" + "ozgcloud.osi.postfach.proxyapi.url=https://postfach.serviceportal-stage.schleswig-holstein.de/ApiProxy/V1/Message", + "ozgcloud.osi.postfach.proxyapi.key=db03d369-438a-4c1a-bcb8-9de951f5ef41", + "ozgcloud.osi.postfach.proxyapi.realm=urn:osp:names:realm:stage:sh", + "ozgcloud.osi.postfach.scheduler.enabled=false" }) @ITCase class OsiPostfachApiTestCase { diff --git a/vorgang-manager-server/src/test/java/de/ozgcloud/nachrichten/postfach/osi/OsiPostfachRemoteServiceITCase.java b/vorgang-manager-server/src/test/java/de/ozgcloud/nachrichten/postfach/osi/OsiPostfachRemoteServiceITCase.java index 53b0456c3388e8f5e9e0122b5f79e817cdb35fc4..44365de881583783552c37c20a92f8b9e26d57be 100644 --- a/vorgang-manager-server/src/test/java/de/ozgcloud/nachrichten/postfach/osi/OsiPostfachRemoteServiceITCase.java +++ b/vorgang-manager-server/src/test/java/de/ozgcloud/nachrichten/postfach/osi/OsiPostfachRemoteServiceITCase.java @@ -45,10 +45,10 @@ import de.ozgcloud.nachrichten.postfach.PostfachNachrichtTestFactory; import de.ozgcloud.vorgang.VorgangManagerServerApplication; @SpringBootTest(classes = { VorgangManagerServerApplication.class, OsiPostfachProperties.class }, properties = { - "kop.osi.postfach.proxyapi.url=http://localhost/ApiProxy/V1/Message", - "kop.osi.postfach.proxyapi.key=1234", - "kop.osi.postfach.proxyapi.realm=test-realm", - "kop.osi.postfach.scheduler.enabled=false" + "ozgcloud.osi.postfach.proxyapi.url=http://localhost/ApiProxy/V1/Message", + "ozgcloud.osi.postfach.proxyapi.key=1234", + "ozgcloud.osi.postfach.proxyapi.realm=test-realm", + "ozgcloud.osi.postfach.scheduler.enabled=false" }) @ITCase class OsiPostfachRemoteServiceITCase {