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 TypeMethodDescriptionchangeTrait(ChangeTraitRequest request) Changes the Trait with the given id according to the properties in the ChangeTraitRequest object.findTraits(FindTraitsRequest findTraitsRequest) Returns all the Traits matching the search criteria described by the FindTraitsRequest object.Get the Trait with the given id.getTraitByPublicId(String publicId) Returns the Trait identified by the given public id.
-
Method Details
-
getTrait
Get the Trait with the given id.- Parameters:
traitId- the id of the Trait- Returns:
- the found Trait
-
getTraitByPublicId
Returns the Trait identified by the given public id.- Parameters:
publicId- the public id of the Trait- Returns:
- the found Trait
-
findTraits
Returns all the Traits matching the search criteria described by the FindTraitsRequest object.- Parameters:
findTraitsRequest- the search criteria- Returns:
- a PagedResponse of Traits
-
changeTrait
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
-