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 itsidwith the information that is present in the request.Changes the mapping identified by its externalids with the information that is present in the request.Changes the mapping identified by its external systemidand mapped resourceidwith the information that is present in the request.changeMappings(List<ChangeMappingRequest> requests) Changes multiple mappings identified by theirids.Changes the mappings identified by their externalids with the information that is present in the request.Changes the mappings identified by their external systemids and mapped resourceids 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 externalids.Returns a mapping identified by its external systemidand mapped resourceid.voidremoveMapping(UUID mappingId) Removes the mapping identified by itsid.voidremoveMappingByExternalEntity(String externalSystemId, String externalEntityId) Removes the mapping identified by its externalids.voidremoveMappingByMappedResource(String externalSystemId, String mappedResourceId) Removes the mapping identified by its external systemidand 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 itsidwith 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:
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 theirids. Only properties that are specified in this request and have notnullvalues 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 externalids 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:
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 externalids 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:
requests- the properties of the mappings to be changed- Returns:
- the changed mappings
-
changeMappingByMappedResource
Changes the mapping identified by its external systemidand mapped resourceidwith 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:
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 systemids and mapped resourceids 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:
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 notnullvalues 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- theidof the mapping- Returns:
- the mapping
-
getMappingByExternalEntity
Returns a mapping identified by its externalids.- Parameters:
request- the criteria for searching the mapping identified by its externalids- Returns:
- the mapping
-
getMappingByMappedResource
Returns a mapping identified by its external systemidand mapped resourceid.- Parameters:
request- the criteria for searching the mapping identified by its external systemidand 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- theidof the mapping
-
removeMappingByExternalEntity
Removes the mapping identified by its externalids.If the mapping does not exist, an exception is NOT thrown.
- Parameters:
externalSystemId- the external systemidof the mapping to be removedexternalEntityId- the external entityidof the mapping to be removed
-
removeMappingByMappedResource
Removes the mapping identified by its external systemidand mapped resourceid.If the mapping does not exist, an exception is NOT thrown.
- Parameters:
externalSystemId- the external systemidof the mapping to be removedmappedResourceId- the mapped resourceidof the mapping to be changed
-
removeMappingsInJob
Removes multiple mappings in job.If any mapping does not exist, an exception is NOT thrown.
- Parameters:
mappingIds- theids 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 systemidof the mappings that will be removedsendNotification- boolean indicating whether we want a notification or not- Returns:
- the job executing removal of the mappings
-