Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
bf4bf7fe
Commit
bf4bf7fe
authored
Feb 22, 2018
by
Madhan Neethiraj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2456: tag propagation - updated entity notification deserializer to handle V2 messages - #3
parent
8d86dd2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
AtlasJson.java
intg/src/main/java/org/apache/atlas/utils/AtlasJson.java
+5
-0
No files found.
intg/src/main/java/org/apache/atlas/utils/AtlasJson.java
View file @
bf4bf7fe
...
@@ -39,6 +39,7 @@ import org.apache.atlas.v1.model.instance.Id;
...
@@ -39,6 +39,7 @@ import org.apache.atlas.v1.model.instance.Id;
import
org.apache.atlas.v1.model.instance.Referenceable
;
import
org.apache.atlas.v1.model.instance.Referenceable
;
import
org.apache.atlas.v1.model.instance.Struct
;
import
org.apache.atlas.v1.model.instance.Struct
;
import
org.apache.atlas.v1.model.notification.EntityNotificationV1
;
import
org.apache.atlas.v1.model.notification.EntityNotificationV1
;
import
org.apache.atlas.v1.model.notification.EntityNotificationV2
;
import
org.apache.atlas.v1.model.notification.HookNotificationV1.*
;
import
org.apache.atlas.v1.model.notification.HookNotificationV1.*
;
import
org.apache.commons.collections.MapUtils
;
import
org.apache.commons.collections.MapUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
...
@@ -386,6 +387,10 @@ public class AtlasJson {
...
@@ -386,6 +387,10 @@ public class AtlasJson {
case
ENTITY_NOTIFICATION_V1:
case
ENTITY_NOTIFICATION_V1:
ret
=
mapper
.
treeToValue
(
root
,
EntityNotificationV1
.
class
);
ret
=
mapper
.
treeToValue
(
root
,
EntityNotificationV1
.
class
);
break
;
break
;
case
ENTITY_NOTIFICATION_V2:
ret
=
mapper
.
treeToValue
(
root
,
EntityNotificationV2
.
class
);
break
;
}
}
}
}
...
...
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