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

# Interface TraitApi

public interface TraitApi
Contains all api operations for handling Traits.

In the Collibra UI, Traits are known as Asset Type Groups; both names refer to the same concept.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Trait`
  `changeTrait(ChangeTraitRequest request)`
  Changes the Trait with the given id according to the properties in the ChangeTraitRequest object.
  `PagedResponse<Trait>`
  `findTraits(FindTraitsRequest findTraitsRequest)`
  Returns all the Traits matching the search criteria described by the FindTraitsRequest object.
  `Trait`
  `getTrait(UUID traitId)`
  Get the Trait with the given id.
  `Trait`
  `getTraitByPublicId(String publicId)`
  Returns the Trait identified by the given public id.

- ## Method Details

  - ### getTrait

    Trait getTrait(UUID traitId)
    Get the Trait with the given id.
    Parameters:
      `traitId` - the id of the Trait
    Returns:
      the found Trait

  - ### getTraitByPublicId

    Trait getTraitByPublicId(String publicId)
    Returns the Trait identified by the given public id.
    Parameters:
      `publicId` - the public id of the Trait
    Returns:
      the found Trait

  - ### findTraits

    PagedResponse<Trait> findTraits(FindTraitsRequest findTraitsRequest)
    Returns all the Traits matching the search criteria described by the FindTraitsRequest object.
    Parameters:
      `findTraitsRequest` - the search criteria
    Returns:
      a PagedResponse of Traits

  - ### changeTrait

    Trait changeTrait(ChangeTraitRequest request)
    Changes the Trait with the given id according to the properties in the ChangeTraitRequest object.
    Parameters:
      `request` - the required information to update the Trait
    Returns:
      The updated Trait