Interface MappingApi
public interface MappingApi
Contains all api operations for handling mappings.
A mapping is a representation of a link between business object from external system and corresponding resource in the Data Governance Center. A single mapping refers to at most one resource which can either be a community, a domain, or an asset.
-
Method Summary
Modifier and TypeMethodDescriptionaddMapping
(AddMappingRequest request) Adds a new mapping.addMappings
(List<AddMappingRequest> requests) Adds multiple mappings.changeMapping
(ChangeMappingRequest request) Changes the mapping identified by itsid
with the information that is present in the request.Changes the mapping identified by its externalid
s with the information that is present in the request.Changes the mapping identified by its external systemid
and mapped resourceid
with the information that is present in the request.changeMappings
(List<ChangeMappingRequest> requests) Changes multiple mappings identified by theirid
s.Changes the mappings identified by their externalid
s with the information that is present in the request.Changes the mappings identified by their external systemid
s and mapped resourceid
s with the information that is present in the request.findMappings
(FindMappingsRequest request) Returns mappings matching the given search criteria.getMapping
(UUID mappingId) Returns a mapping identified by givenid
.Returns a mapping identified by its externalid
s.Returns a mapping identified by its external systemid
and mapped resourceid
.void
removeMapping
(UUID mappingId) Removes the mapping identified by itsid
.void
removeMappingByExternalEntity
(String externalSystemId, String externalEntityId) Removes the mapping identified by its externalid
s.void
removeMappingByMappedResource
(String externalSystemId, String mappedResourceId) Removes the mapping identified by its external systemid
and mapped resourceid
.removeMappingsByExternalSystemInJob
(String externalSystemId, boolean sendNotification) Removes all the mappings identified by given external systemid
.removeMappingsInJob
(List<UUID> mappingIds, boolean sendNotification) Removes multiple mappings in job.
-
Method Details
-
addMapping
Adds a new mapping.- Parameters:
request
- the properties of the mapping to be added- Returns:
- the newly added mapping
-
addMappings
Adds multiple mappings.- Parameters:
requests
- the properties of the mappings to be added- Returns:
- the added mappings
-
changeMapping
Changes the mapping identified by itsid
with the information that is present in the request. Only properties that are specified in this request and have notnull
values are updated. All other properties are ignored.- Parameters:
request
- the properties of the mapping to be changed- Returns:
- the changed mapping
-
changeMappings
@SecurityAuditMethod(resultFormatter=com.collibra.audit.formatter.CollectionFormatter.class) List<Mapping> changeMappings(List<ChangeMappingRequest> requests) Changes multiple mappings identified by theirid
s. Only properties that are specified in this request and have notnull
values are updated. All other properties are ignored.- Parameters:
requests
- the properties of the mappings to be changed- Returns:
- the changed mappings
-
changeMappingByExternalEntity
Changes the mapping identified by its externalid
s with the information that is present in the request. Only properties that are specified in this request and have notnull
values are updated. All other properties are ignored.- Parameters:
request
- the properties of the mapping to be changed- Returns:
- the changed mapping
-
changeMappingsByExternalEntities
@SecurityAuditMethod(resultFormatter=com.collibra.audit.formatter.CollectionFormatter.class) List<Mapping> changeMappingsByExternalEntities(List<ChangeMappingByExternalEntityRequest> requests) Changes the mappings identified by their externalid
s with the information that is present in the request. Only properties that are specified in this request and have notnull
values are updated. All other properties are ignored.- Parameters:
requests
- the properties of the mappings to be changed- Returns:
- the changed mappings
-
changeMappingByMappedResource
Changes the mapping identified by its external systemid
and mapped resourceid
with the information that is present in the request. Only properties that are specified in this request and have notnull
values are updated. All other properties are ignored.- Parameters:
request
- the properties of the mapping to be changed- Returns:
- the changed mapping
-
changeMappingsByMappedResources
@SecurityAuditMethod(resultFormatter=com.collibra.audit.formatter.CollectionFormatter.class) List<Mapping> changeMappingsByMappedResources(List<ChangeMappingByMappedResourceRequest> requests) Changes the mappings identified by their external systemid
s and mapped resourceid
s with the information that is present in the request. Only properties that are specified in this request and have notnull
values are updated. All other properties are ignored.- Parameters:
requests
- the properties of the mappings to be changed- Returns:
- the changed mappings
-
findMappings
@SecurityAuditMethod(resultFormatter=com.collibra.dgc.core.api.internal.security.audit.formatter.PagedResponseFormatter.class) PagedResponse<Mapping> findMappings(FindMappingsRequest request) Returns mappings matching the given search criteria. Only parameters that are specified in this request and have notnull
values are used for filtering. All other parameters are ignored. The returned mappings satisfy all constraints that are specified in this search criteria. By default a result containing 1000 mappings is returned.- Parameters:
request
- the search criteria- Returns:
- the found mappings
-
getMapping
Returns a mapping identified by givenid
.- Parameters:
mappingId
- theid
of the mapping- Returns:
- the mapping
-
getMappingByExternalEntity
Returns a mapping identified by its externalid
s.- Parameters:
request
- the criteria for searching the mapping identified by its externalid
s- Returns:
- the mapping
-
getMappingByMappedResource
Returns a mapping identified by its external systemid
and mapped resourceid
.- Parameters:
request
- the criteria for searching the mapping identified by its external systemid
and mapped resourceid
- Returns:
- the mapping
-
removeMapping
Removes the mapping identified by itsid
.If the mapping does not exist, an exception is NOT thrown.
- Parameters:
mappingId
- theid
of the mapping
-
removeMappingByExternalEntity
Removes the mapping identified by its externalid
s.If the mapping does not exist, an exception is NOT thrown.
- Parameters:
externalSystemId
- the external systemid
of the mapping to be removedexternalEntityId
- the external entityid
of the mapping to be removed
-
removeMappingByMappedResource
Removes the mapping identified by its external systemid
and mapped resourceid
.If the mapping does not exist, an exception is NOT thrown.
- Parameters:
externalSystemId
- the external systemid
of the mapping to be removedmappedResourceId
- the mapped resourceid
of the mapping to be changed
-
removeMappingsInJob
Removes multiple mappings in job.If any mapping does not exist, an exception is NOT thrown.
- Parameters:
mappingIds
- theid
s of the mappings to be removed, i.e. ["6f685f90-1036-4d30-983a-a9bbcdd7b8f6", "6f685f90-1036-4d30-983a-a9bbcdd7b123"]sendNotification
- boolean indicating whether we want a notification or not- Returns:
- the job executing removal of the mappings
-
removeMappingsByExternalSystemInJob
Removes all the mappings identified by given external systemid
.- Parameters:
externalSystemId
- the external systemid
of the mappings that will be removedsendNotification
- boolean indicating whether we want a notification or not- Returns:
- the job executing removal of the mappings
-