Class TagLabelUtil

java.lang.Object
org.openmetadata.service.resources.tags.TagLabelUtil

public class TagLabelUtil extends Object
  • Method Details

    • getClassification

      public static Classification getClassification(String classificationName)
    • getTag

      public static Tag getTag(String tagFqn)
    • getGlossary

      public static Glossary getGlossary(String glossaryName)
    • getGlossaryTerm

      public static GlossaryTerm getGlossaryTerm(String glossaryTermFqn)
    • applyTagCommonFields

      public static void applyTagCommonFields(TagLabel label)
    • mutuallyExclusive

      public static boolean mutuallyExclusive(TagLabel label)
      Returns true if the parent of the tag label is mutually exclusive
    • addDerivedTags

      public static List<TagLabel> addDerivedTags(List<TagLabel> tagLabels)
    • getUniqueTags

      public static List<TagLabel> getUniqueTags(List<TagLabel> tags)
    • checkMutuallyExclusive

      public static void checkMutuallyExclusive(List<TagLabel> tagLabels)
    • checkMutuallyExclusiveForParentAndSubField

      public static void checkMutuallyExclusiveForParentAndSubField(String assetFqn, String assetFqnHash, Map<String,List<TagLabel>> allAssetTags, List<TagLabel> glossaryTags, boolean validateSubFields)
    • converTagLabelArrayToString

      public static String converTagLabelArrayToString(List<TagLabel> tags)