This is an automated email from the ASF dual-hosted git repository.

nixon pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git

commit d7efa6e38021c7bc45210680bedf29b8aaa59609
Author: nixonrodrigues <[email protected]>
AuthorDate: Tue Sep 29 10:28:10 2020 +0530

    ATLAS-3962 : Include business metadata def header in typdefs headers API
    
    Change-Id: I52783f36c59509fefeb75f56f3391a7ea6a261ce
    (cherry picked from commit 7ae0bea9680d78605e1362dfbea288518f0e50ff)
---
 intg/src/main/java/org/apache/atlas/type/AtlasTypeUtil.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/intg/src/main/java/org/apache/atlas/type/AtlasTypeUtil.java 
b/intg/src/main/java/org/apache/atlas/type/AtlasTypeUtil.java
index 9abcd34..889e26d 100644
--- a/intg/src/main/java/org/apache/atlas/type/AtlasTypeUtil.java
+++ b/intg/src/main/java/org/apache/atlas/type/AtlasTypeUtil.java
@@ -366,6 +366,11 @@ public class AtlasTypeUtil {
                 headerList.add(new AtlasTypeDefHeader(relationshipDef));
             }
         }
+        if (CollectionUtils.isNotEmpty(typesDef.getBusinessMetadataDefs())) {
+            for (AtlasBusinessMetadataDef businessMetadataDef : 
typesDef.getBusinessMetadataDefs()) {
+                headerList.add(new AtlasTypeDefHeader(businessMetadataDef));
+            }
+        }
 
         return headerList;
     }

Reply via email to