Interface RelationTypeApi
public interface RelationTypeApi
Contains all API operations for handling Relation Types.
-
Method Summary
Modifier and TypeMethodDescriptionaddRelationType(AddRelationTypeRequest addRelationTypeRequest) Adds a Relation Type.addRelationTypes(List<AddRelationTypeRequest> addRelationTypeRequests) Adds multiple Relation Types.changeRelationType(ChangeRelationTypeRequest changeRelationTypeRequest) Changes the Relation Type with the information that is present in the request.changeRelationTypes(List<ChangeRelationTypeRequest> changeRelationTypeRequests) Changes multiple Relation Types.booleanReturns true if a Relation Type with givenidexists.booleanexistsByPublicId(String publicId) Returns true if an explicit Relation Type with givenpublicIdexists.findRelationTypes(FindRelationTypesRequest findRequest) Returns Relation Types matching the given search input.getRelationType(UUID relationTypeId) Returns the Relation Type for the given UUID.getRelationTypeByPublicId(String publicId) Returns the explicit relation type identified by the given public id.voidremoveRelationType(UUID relationTypeId) Remove the Relation Type with the given id.removeRelationTypeInJob(UUID relationTypeId) Remove the Relation Type with the given id asynchronously.voidremoveRelationTypes(List<UUID> relationTypeIds) Remove multiple Relation Types with the given ids.removeRelationTypesInJob(List<UUID> relationTypeIds) Remove multiple Relation Types with the given ids asynchronously.
-
Method Details
-
getRelationType
Returns the Relation Type for the given UUID.- Parameters:
relationTypeId- the UUID of the Relation Type we want to fetch- Returns:
- the found Relation Type
-
getRelationTypeByPublicId
Returns the explicit relation type identified by the given public id. Derived relation types are not returned by this method; if the given public id refers to a derived relation type, an exception is thrown. UseDerivedRelationTypeApi.getDerivedRelationTypeByPublicId(String)to resolve a derived relation type by public id.- Parameters:
publicId- the public id of the relation type- Returns:
- the found explicit relation type
-
exists
Returns true if a Relation Type with givenidexists.- Parameters:
relationTypeId- theidof the Relation Type- Returns:
- true if a Relation Type with given
idexists,falseotherwise
-
existsByPublicId
Returns true if an explicit Relation Type with givenpublicIdexists. Returnsfalseif the public id refers to a derived relation type or does not exist.- Parameters:
publicId- the public id of the Relation Type- Returns:
- true if an explicit Relation Type with given
publicIdexists,falseotherwise
-
addRelationType
Adds a Relation Type.- Parameters:
addRelationTypeRequest- information required to create the Relation Type- Returns:
- the created Relation Type
-
addRelationTypes
@SecurityAuditMethod(resultFormatter=com.collibra.audit.formatter.CollectionFormatter.class) List<RelationType> addRelationTypes(List<AddRelationTypeRequest> addRelationTypeRequests) Adds multiple Relation Types.- Parameters:
addRelationTypeRequests- information required to create the Relation Type- Returns:
- the created Relation Types
-
removeRelationType
Remove the Relation Type with the given id.- Parameters:
relationTypeId- the id of the Relation Type
-
removeRelationTypeInJob
Remove the Relation Type with the given id asynchronously.- Parameters:
relationTypeId- the id of the Relation Type
-
removeRelationTypes
Remove multiple Relation Types with the given ids.- Parameters:
relationTypeIds- the ids of the Relation Type
-
removeRelationTypesInJob
Remove multiple Relation Types with the given ids asynchronously.- Parameters:
relationTypeIds- the ids of the Relation Type
-
changeRelationType
Changes the Relation Type with the information that is present in the request. Only properties that are specified in this request and have notnullvalues are updated. All other properties are ignored.- Parameters:
changeRelationTypeRequest- the properties of the Relation Type to be changed- Returns:
- the changed Relation Type
-
changeRelationTypes
@SecurityAuditMethod(resultFormatter=com.collibra.audit.formatter.CollectionFormatter.class) List<RelationType> changeRelationTypes(List<ChangeRelationTypeRequest> changeRelationTypeRequests) Changes multiple Relation Types.- Parameters:
changeRelationTypeRequests- the properties of the Relation Types to be changed- Returns:
- the changed Relation Types
-
findRelationTypes
@SecurityAuditMethod(resultFormatter=com.collibra.dgc.core.api.internal.security.audit.formatter.PagedResponseFormatter.class) PagedResponse<RelationType> findRelationTypes(FindRelationTypesRequest findRequest) Returns Relation Types matching the given search input.- Parameters:
findRequest- specified search criteria for search Relation Types- Returns:
- the found Relation Types
-