Skip to content
Snippets Groups Projects
Commit f827ca13 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4185 OZG-4570 Rename properties in other places

parent 6c0ed9d0
No related branches found
No related tags found
No related merge requests found
Showing
with 29 additions and 34 deletions
......@@ -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) {
......
......@@ -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();
......
......@@ -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;
......
......@@ -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() {
......
......@@ -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() {
......
......@@ -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"));
}
}
{"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"
}
......
......@@ -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
......
......@@ -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 {
......
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment