Commit bf4bf7fe by Madhan Neethiraj

ATLAS-2456: tag propagation - updated entity notification deserializer to handle V2 messages - #3

parent 8d86dd2c
...@@ -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;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment