Package com.collibra.dgc.core.api.component.assignment

# Interface TraitAssignmentApi

public interface TraitAssignmentApi
Contains all api operations for retrieving trait assignments. A trait assignment is a characteristics linked to a trait.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<TraitAssignment>`
  `getTraitAssignments(UUID traitId)`
  Retrieves all TraitAssignments of the specified Trait.
  `List<TraitAssignment>`
  `getTraitAssignmentsByPublicId(String publicId)`
  Retrieves all TraitAssignments of the specified Trait.

- ## Method Details

  - ### getTraitAssignments

    List<TraitAssignment> getTraitAssignments(UUID traitId)
    Retrieves all TraitAssignments of the specified Trait.
    Parameters:
      `traitId` - the id of the Trait
    Returns:
      all TraitAssignments of the Trait

  - ### getTraitAssignmentsByPublicId

    List<TraitAssignment> getTraitAssignmentsByPublicId(String publicId)
    Retrieves all TraitAssignments of the specified Trait.
    Parameters:
      `publicId` - the public id of the Trait
    Returns:
      all TraitAssignments of the Trait