Interface DomainTypeApi
public interface DomainTypeApi
Contains all API operations for handling Domain Types.
-
Method Summary
Modifier and TypeMethodDescriptionaddDomainType(AddDomainTypeRequest addDomainTypeRequest) Adds a new Domain Type.addDomainTypes(List<AddDomainTypeRequest> addDomainTypeRequests) Adds multiple Domain Types.changeDomainType(ChangeDomainTypeRequest changeDomainTypeRequest) Changes the Domain Type with the information that is present in the request.changeDomainTypes(List<ChangeDomainTypeRequest> changeDomainTypeRequests) Changes multiple Domain Types.booleanReturns true if a Domain Type with givenidexists.findDomainTypes(FindDomainTypesRequest request) Returns Domain Types matching the given search criteria.findSubTypes(FindSubDomainTypesRequest findSubDomainTypesRequest) Finds all the subtypes of the Domain Type as described in the request object.getDomainType(UUID domainTypeId) Returns the Domain Type identified by the given id.getDomainTypeByName(String domainTypeName) Returns the Domain Type with the given name.getDomainTypeByPublicId(String publicId) Returns the domain type identified by the given public id.voidremoveDomainType(UUID domainTypeId) Removes Domain Type identified by given id.voidremoveDomainTypes(List<UUID> domainTypeIds) Removes multiple Domain Types.
-
Method Details
-
addDomainType
Adds a new Domain Type.- Parameters:
addDomainTypeRequest- the properties of the Domain Type to be added- Returns:
- the newly added Domain Type
-
addDomainTypes
@SecurityAuditMethod(resultFormatter=com.collibra.audit.formatter.CollectionFormatter.class) List<DomainType> addDomainTypes(List<AddDomainTypeRequest> addDomainTypeRequests) Adds multiple Domain Types.- Parameters:
addDomainTypeRequests- the properties of the Domain Types to be added- Returns:
- the newly added Domain Types
-
changeDomainType
Changes the Domain Type with the information that is present in the request. Only properties that are specified in this request and do not havenullvalues are updated. All other properties are ignored.- Parameters:
changeDomainTypeRequest- the properties of the Domain Type to be changed- Returns:
- the changed Domain Type
-
changeDomainTypes
@SecurityAuditMethod(resultFormatter=com.collibra.audit.formatter.CollectionFormatter.class) List<DomainType> changeDomainTypes(List<ChangeDomainTypeRequest> changeDomainTypeRequests) Changes multiple Domain Types.- Parameters:
changeDomainTypeRequests- the properties of the Domain Types to be changed- Returns:
- the changed Domain Types
-
getDomainType
Returns the Domain Type identified by the given id.- Parameters:
domainTypeId- the identifier of the Domain Type- Returns:
- the found Domain Type
-
getDomainTypeByPublicId
Returns the domain type identified by the given public id.- Parameters:
publicId- the public id of the domain type- Returns:
- the found domain type
-
getDomainTypeByName
Returns the Domain Type with the given name.- Parameters:
domainTypeName- the name of the Domain Type- Returns:
- the found Domain Type
-
findDomainTypes
@SecurityAuditMethod(resultFormatter=com.collibra.dgc.core.api.internal.security.audit.formatter.PagedResponseFormatter.class) PagedResponse<DomainType> findDomainTypes(FindDomainTypesRequest request) Returns Domain Types matching the given search criteria. Only parameters that are specified in this request and do not havenullvalues are used for filtering. All other parameters are ignored. The returned Domain Types satisfy all constraints that are specified in this search criteria. By default, a result containing 1000 Domain Types is returned.- Parameters:
request- the search criteria- Returns:
- the found Domain Types
-
findSubTypes
@SecurityAuditMethod(resultFormatter=com.collibra.audit.formatter.CollectionFormatter.class) List<DomainType> findSubTypes(FindSubDomainTypesRequest findSubDomainTypesRequest) Finds all the subtypes of the Domain Type as described in the request object.- Parameters:
findSubDomainTypesRequest- the request for sub Domain Types search- Returns:
- the list of found sub Domain Types
-
exists
Returns true if a Domain Type with givenidexists.- Parameters:
domainTypeId- theidof the asset type- Returns:
- true if a Domain Type with given
idexists,falseotherwise
-
removeDomainType
Removes Domain Type identified by given id.- Parameters:
domainTypeId- theidof the Domain Type
-
removeDomainTypes
Removes multiple Domain Types.- Parameters:
domainTypeIds- theids of the Domain Types to be removed, i.e. [“6f685f90-1036-4d30-983a-a9bbcdd7b8f6”,"174b6334-9804-495d-b659-43f53a5de8b8"]
-