Interface AttributeTypeApi
public interface AttributeTypeApi
Contains all API operations for handling Attribute Types.
-
Method Summary
Modifier and TypeMethodDescriptionaddAttributeType(AddAttributeTypeRequest addAttributeTypeRequest) Adds an Attribute Type.addAttributeTypes(List<AddAttributeTypeRequest> addAttributeTypeRequests) Adds multiple Attribute Types.changeAttributeType(ChangeAttributeTypeRequest changeAttributeTypeRequest) Change the Attribute Type with information present in the request.changeAttributeTypes(List<ChangeAttributeTypeRequest> changeAttributeTypeRequest) Changes multiple Attribute Types.booleanReturns true if an Attribute Type with givenidexists.findAttributeTypes(FindAttributeTypesRequest findRequest) Returns Attribute Types matching the given search input.getAttributeType(UUID attributeTypeId) Returns the attributeType with the given id.getAttributeTypeByName(String name) Returns the Attribute Type with the given name.getAttributeTypeByPublicId(String publicId) Returns the attribute type identified by the given public id.voidremoveAttributeType(UUID attributeTypeId) Remove the Attribute Type with the given id.voidremoveAttributeTypes(List<UUID> attributeTypeIds) Removes the Attribute Types with the given ids.
-
Method Details
-
getAttributeType
Returns the attributeType with the given id.- Parameters:
attributeTypeId- the id of the attributeType- Returns:
- the found attributeType
-
getAttributeTypeByName
Returns the Attribute Type with the given name.- Parameters:
name- the name of the Attribute Type- Returns:
- the found Attribute Type
-
getAttributeTypeByPublicId
Returns the attribute type identified by the given public id.- Parameters:
publicId- the public id of the attribute type- Returns:
- the found attribute type
-
exists
Returns true if an Attribute Type with givenidexists.- Parameters:
attributeTypeId- theidof the Attribute Type- Returns:
- true if an Attribute Type with given
idexists,falseotherwise
-
addAttributeType
Adds an Attribute Type.- Parameters:
addAttributeTypeRequest- information required to create the Attribute Type- Returns:
- the created Attribute Type
-
addAttributeTypes
@SecurityAuditMethod(resultFormatter=com.collibra.audit.formatter.CollectionFormatter.class) List<AttributeType> addAttributeTypes(List<AddAttributeTypeRequest> addAttributeTypeRequests) Adds multiple Attribute Types.- Parameters:
addAttributeTypeRequests- the list of Attribute Type request- Returns:
- the created Attribute Types
-
removeAttributeType
Remove the Attribute Type with the given id.- Parameters:
attributeTypeId- the id of the Attribute Type
-
removeAttributeTypes
Removes the Attribute Types with the given ids.- Parameters:
attributeTypeIds- the Attribute Type Ids
-
changeAttributeType
Change the Attribute Type with information present in the request. Only the information present in the request is considered. Any other properties are left untouched.- Parameters:
changeAttributeTypeRequest- information about changes to do on the existing Attribute Type- Returns:
- the modified Attribute Type
-
changeAttributeTypes
@SecurityAuditMethod(resultFormatter=com.collibra.audit.formatter.CollectionFormatter.class) List<AttributeType> changeAttributeTypes(List<ChangeAttributeTypeRequest> changeAttributeTypeRequest) Changes multiple Attribute Types.- Parameters:
changeAttributeTypeRequest- list of changes to do on Attribute types- Returns:
- the modified Attribute Types
-
findAttributeTypes
@SecurityAuditMethod(resultFormatter=com.collibra.dgc.core.api.internal.security.audit.formatter.PagedResponseFormatter.class) PagedResponse<AttributeType> findAttributeTypes(FindAttributeTypesRequest findRequest) Returns Attribute Types matching the given search input.- Parameters:
findRequest- specified search criteria for search Attribute Types- Returns:
- the found attributeTypes
-