Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eingang-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
eingang-manager
Commits
7f24977d
Commit
7f24977d
authored
11 months ago
by
OZGCloud
Browse files
Options
Downloads
Patches
Plain Diff
OZG-5156 Accept FIM messages in XTA adapter
test with new pom
parent
fe6d6e0e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
fim-adapter/pom.xml
+14
-17
14 additions, 17 deletions
fim-adapter/pom.xml
fim-adapter/src/main/java/de/ozgcloud/eingang/fim/FimBasedAdapter.java
+2
-10
2 additions, 10 deletions
...rc/main/java/de/ozgcloud/eingang/fim/FimBasedAdapter.java
with
16 additions
and
27 deletions
fim-adapter/pom.xml
+
14
−
17
View file @
7f24977d
...
...
@@ -20,16 +20,6 @@
<artifactId>
semantik-adapter
</artifactId>
</dependency>
<!--spring-->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-actuator
</artifactId>
</dependency>
<!--test -->
<dependency>
<groupId>
de.ozgcloud.eingang
</groupId>
...
...
@@ -42,23 +32,30 @@
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-jar-plugin
</artifactId>
<executions>
<execution>
<goals>
<goal>
test-jar
</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.
apache.maven.plugins
</groupId>
<artifactId>
maven-surefire
-plugin
</artifactId>
<groupId>
org.
jacoco
</groupId>
<artifactId>
jacoco-maven
-plugin
</artifactId>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-
failsaf
e-plugin
</artifactId>
<artifactId>
maven-
surefir
e-plugin
</artifactId>
</plugin>
<plugin>
<groupId>
org.
jacoco
</groupId>
<artifactId>
jacoco-maven
-plugin
</artifactId>
<groupId>
org.
apache.maven.plugins
</groupId>
<artifactId>
maven-failsafe
-plugin
</artifactId>
</plugin>
</plugins>
</build>
...
...
This diff is collapsed.
Click to expand it.
fim-adapter/src/main/java/de/ozgcloud/eingang/fim/FimBasedAdapter.java
+
2
−
10
View file @
7f24977d
...
...
@@ -5,7 +5,6 @@ import de.ozgcloud.eingang.common.formdata.FormHeader;
import
de.ozgcloud.eingang.common.formdata.IncomingFile
;
import
de.ozgcloud.eingang.semantik.enginebased.EngineBasedSemantikAdapter
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
org.w3c.dom.Document
;
...
...
@@ -19,7 +18,7 @@ import java.util.Optional;
@Log4j2
@Component
public
class
FimBasedAdapter
implements
EngineBasedSemantikAdapter
,
InitializingBean
{
public
class
FimBasedAdapter
implements
EngineBasedSemantikAdapter
{
static
final
String
FIM_FORM_ENGINE_NAME
=
"FIM"
;
...
...
@@ -28,9 +27,7 @@ public class FimBasedAdapter implements EngineBasedSemantikAdapter, Initializing
@Override
public
boolean
isResponsible
(
final
FormData
formData
)
{
// FIXME remove
String
formEngineName
=
formData
.
getHeader
().
getFormEngineName
();
LOG
.
info
(
"Check for FIM Adapter - "
+
formEngineName
);
final
String
formEngineName
=
formData
.
getHeader
().
getFormEngineName
();
return
FIM_FORM_ENGINE_NAME
.
equals
(
formEngineName
);
}
...
...
@@ -74,9 +71,4 @@ public class FimBasedAdapter implements EngineBasedSemantikAdapter, Initializing
final
DocumentBuilder
builder
=
DocumentBuilderFactory
.
newInstance
().
newDocumentBuilder
();
return
builder
.
parse
(
incomingFile
.
getContentStream
());
}
@Override
public
void
afterPropertiesSet
()
throws
Exception
{
LOG
.
debug
(
"Bean for FIMBasedMapper created"
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment