Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DDA
dda-wizard
Commits
1144bd55
Commit
1144bd55
authored
Apr 27, 2022
by
Steinberg, Jan
Browse files
added BundlesSourceStatus to getSetSpec method
parent
b7e0f9e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gesis/dda/wizard/web/rest/BundlesSourceResource.java
View file @
1144bd55
...
...
@@ -104,14 +104,14 @@ public class BundlesSourceResource {
.
body
(
result
);
}
private
String
getSetSpec
(
String
data
)
{
if
(
null
!=
data
)
{
private
String
getSetSpec
(
String
data
,
BundlesSourceType
bundlesSourceType
)
{
if
(
null
!=
data
&&
bundlesSourceType
==
BundlesSourceType
.
XSLT_OAI_PMH
)
{
final
JSONObject
obj
=
new
JSONObject
(
data
);
if
(
null
!=
obj
.
get
(
"setSpec"
))
{
return
(
String
)
obj
.
get
(
"setSpec"
);
}
}
return
null
;
return
""
;
}
/**
...
...
@@ -305,7 +305,7 @@ public class BundlesSourceResource {
log
.
debug
(
"REST request to harvest BundlesSource : {}"
,
id
);
BundlesSource
bundlesSource
=
bundlesSourceRepository
.
findOne
(
id
);
if
(
null
!=
bundlesSource
)
{
final
String
setSpec
=
getSetSpec
(
bundlesSource
.
getData
());
final
String
setSpec
=
getSetSpec
(
bundlesSource
.
getData
()
,
bundlesSource
.
getType
()
);
if
(
null
!=
setSpec
)
{
final
String
referenceOfBS
=
bundlesSource
.
getReference
();
bundlesSource
.
setReference
(
referenceOfBS
+
"___"
+
setSpec
);
...
...
Write
Preview
Supports
Markdown
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