Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Projects
Eclipse openK User Modules
org.eclipse.openk-usermodules.gridFailureInformation.backend
Commits
4fcd2b9b
Commit
4fcd2b9b
authored
Oct 07, 2020
by
dietricf
Browse files
SI-3052
parent
a11f8fb9
Changes
3
Hide whitespace changes
Inline
Side-by-side
gfsBackendService/src/main/java/org/eclipse/openk/gridfailureinformation/constants/Constants.java
View file @
4fcd2b9b
...
...
@@ -43,6 +43,7 @@ public final class Constants {
public
static
final
String
CHANNEL_NOT_EXISTING
=
"channel.not.existing"
;
public
static
final
String
PUBLICATION_CHANNEL_MAIL
=
"Mail"
;
public
static
final
String
PUBLICATION_CHANNEL_OWNDMZ
=
"Störinfotool-eigene-Web-Komponenten"
;
public
static
final
String
FREETEXT_ADDRESS_TYPE
=
"freetext"
;
...
...
gfsBackendService/src/main/java/org/eclipse/openk/gridfailureinformation/service/ExportService.java
View file @
4fcd2b9b
...
...
@@ -63,6 +63,8 @@ import java.util.Set;
import
java.util.UUID
;
import
java.util.stream.Collectors
;
import
static
org
.
eclipse
.
openk
.
gridfailureinformation
.
constants
.
Constants
.
PUBLICATION_CHANNEL_OWNDMZ
;
@Service
@Log4j2
@Validated
...
...
@@ -223,6 +225,7 @@ public class ExportService {
List
<
FailureInformationDto
>
failureInfoDtossVeroeffentlicht
=
tblFailureInfosVeroeffentlicht
.
stream
()
.
filter
(
x
->
currTableViewUuidSet
.
contains
(
x
.
getUuid
()))
.
filter
(
this
::
hasSITWebComponentChannel
)
.
map
(
failureInformationMapper:
:
toFailureInformationDto
)
.
map
(
failureInformationService:
:
enrichFailureInfo
)
.
collect
(
Collectors
.
toList
());
...
...
@@ -235,7 +238,13 @@ public class ExportService {
}
}
public
void
exportFeSettingsToDMZ
(){
private
boolean
hasSITWebComponentChannel
(
TblFailureInformation
x
)
{
return
publicationChannelRepository
.
findByTblFailureInformation
(
x
).
stream
()
.
map
(
TblFailureInformationPublicationChannel:
:
getPublicationChannel
)
.
anyMatch
(
PUBLICATION_CHANNEL_OWNDMZ:
:
equalsIgnoreCase
);
}
public
void
exportFeSettingsToDMZ
(){
try
{
sitCacheApi
.
postFeSettings
(
settingsService
.
getFESettings
());
}
catch
(
Exception
e
)
{
...
...
gfsBackendService/src/main/resources/application.yml
View file @
4fcd2b9b
...
...
@@ -40,6 +40,9 @@ spring:
-
name
:
Störungsauskunft.de
exportQueue
:
sit_stoerungsauskunft_export_queue
exportKey
:
sit_stoerungsauskunft_export_key
-
name
:
Störinfotool-eigene-Web-Komponenten
exportQueue
:
sit_own_export_queue
exportKey
:
sit_own_export_key
# UI Setting (Map)
settings
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment