Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
knowledge-platform
Commits
0ade2161
Commit
0ade2161
authored
2 years ago
by
Jayaprakash n
Browse files
Options
Download
Patches
Plain Diff
Issue #KN-427 feat: Test case update
parent
ac5978f5
release-5.2.0
knowlg-oneclick
patch-1
patch-2
patch-3
release-5.2.0_RC2
release-5.2.0_RC1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ontology-engine/graph-core_2.11/src/main/scala/org/sunbird/graph/util/CSPMetaUtil.scala
+3
-1
...1/src/main/scala/org/sunbird/graph/util/CSPMetaUtil.scala
with
3 additions
and
1 deletion
+3
-1
ontology-engine/graph-core_2.11/src/main/scala/org/sunbird/graph/util/CSPMetaUtil.scala
+
3
−
1
View file @
0ade2161
...
...
@@ -17,7 +17,7 @@ object CSPMetaUtil {
val
relativePathPrefix
:
String
=
Platform
.
getString
(
"cloudstorage.relative_path_prefix"
,
""
)
val
cspMeta
=
Platform
.
getStringList
(
"cloudstorage.metadata.list"
,
new
java
.
util
.
ArrayList
[
String
]()).
asScala
.
toList
val
absolutePath
=
Platform
.
getString
(
"cloudstorage.read_base_path"
,
""
)
+
java
.
io
.
File
.
separator
+
Platform
.
getString
(
"cloud_storage_container"
,
""
)
if
(
MapUtils
.
isNotEmpty
(
data
))
{
val
returnData
=
if
(
MapUtils
.
isNotEmpty
(
data
))
{
val
updatedMeta
:
java.util.Map
[
String
,
AnyRef
]
=
new
java
.
util
.
HashMap
[
String
,
AnyRef
]
data
.
asScala
.
map
(
x
=>
if
(
cspMeta
.
contains
(
x
.
_1
))
...
...
@@ -26,6 +26,8 @@ object CSPMetaUtil {
).
asJava
updatedMeta
}
else
data
logger
.
info
(
"CSPMetaUtil ::: updateAbsolutePath util.Map[String, AnyRef] ::: updateAbsolutePath returnData :: "
+
returnData
)
returnData
}
def
updateAbsolutePath
(
node
:
Node
)
:
Node
=
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets