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
24740458
Commit
24740458
authored
5 years ago
by
Pradyumna Nagendra
Browse files
Options
Download
Patches
Plain Diff
Issue #devcon feat: School APIs
parent
a3cc3422
devcon-2020
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ontology-engine/graph-engine_2.11/src/main/scala/org/sunbird/graph/utils/NodeUtil.scala
+2
-2
....11/src/main/scala/org/sunbird/graph/utils/NodeUtil.scala
with
2 additions
and
2 deletions
+2
-2
ontology-engine/graph-engine_2.11/src/main/scala/org/sunbird/graph/utils/NodeUtil.scala
+
2
−
2
View file @
24740458
...
...
@@ -115,7 +115,7 @@ object NodeUtil {
val
relMap
=
new
util
.
HashMap
[
String
,
util.List
[
util.Map
[
String
,
AnyRef
]]]
for
(
rel
<-
inRelations
.
asScala
)
{
val
relKey
:
String
=
rel
.
getRelationType
+
"_in_"
+
rel
.
getEndNodeObjectType
if
(
relMap
.
containsKey
(
relationMap
.
get
(
relKey
)))
relMap
.
get
(
relationMap
.
get
(
relKey
)).
add
(
populateRelationMaps
(
rel
,
"in"
))
if
(
relMap
.
containsKey
(
relationMap
.
get
(
relKey
)))
relMap
.
get
(
relationMap
.
get
(
relKey
)).
add
(
if
(!
isTeacher
)
populateRelationMaps
(
rel
,
"in"
)
else
populateRelationPeriodMaps
(
rel
,
"in"
))
else
{
if
(
null
!=
relationMap
.
get
(
relKey
))
{
relMap
.
put
(
relationMap
.
get
(
relKey
).
asInstanceOf
[
String
],
new
util
.
ArrayList
[
util.Map
[
String
,
AnyRef
]]()
{
add
(
if
(!
isTeacher
)
populateRelationMaps
(
rel
,
"in"
)
else
populateRelationPeriodMaps
(
rel
,
"in"
))})
...
...
@@ -124,7 +124,7 @@ object NodeUtil {
}
for
(
rel
<-
outRelations
.
asScala
)
{
val
relKey
:
String
=
rel
.
getRelationType
+
"_out_"
+
rel
.
getEndNodeObjectType
if
(
relMap
.
containsKey
(
relationMap
.
get
(
relKey
)))
relMap
.
get
(
relationMap
.
get
(
relKey
)).
add
(
populateRelationMaps
(
rel
,
"out"
))
if
(
relMap
.
containsKey
(
relationMap
.
get
(
relKey
)))
relMap
.
get
(
relationMap
.
get
(
relKey
)).
add
(
if
(!
isTeacher
)
populateRelationMaps
(
rel
,
"out"
)
else
populateRelationPeriodMaps
(
rel
,
"out"
))
else
{
if
(
null
!=
relationMap
.
get
(
relKey
))
{
relMap
.
put
(
relationMap
.
get
(
relKey
).
asInstanceOf
[
String
],
new
util
.
ArrayList
[
util.Map
[
String
,
AnyRef
]]()
{
add
(
if
(!
isTeacher
)
populateRelationMaps
(
rel
,
"out"
)
else
populateRelationPeriodMaps
(
rel
,
"out"
))})
...
...
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