public interface MappingService
| Modifier and Type | Method and Description |
|---|---|
MappingProject |
addMappingProject(String name,
String target)
Creates a new
MappingProject |
long |
applyMappings(String mappingProjectId,
String entityTypeId,
Boolean addSourceAttribute,
String packageId,
String label,
org.molgenis.jobs.Progress progress)
Applies all mappings in a
MappingTarget |
MappingProject |
cloneMappingProject(String mappingProjectId)
Clones a
MappingProject. |
MappingProject |
cloneMappingProject(String mappingProjectId,
String clonedMappingProjectName)
Clones a
MappingProject. |
void |
deleteMappingProject(String mappingProjectId)
Deletes a
MappingProject |
List<MappingProject> |
getAllMappingProjects()
Retrieves all
MappingProjects. |
Stream<EntityType> |
getCompatibleEntityTypes(EntityType target)
Retrieves a Stream of existing compatible
EntityTypes that are valid as a mapping target. |
MappingProject |
getMappingProject(String identifier)
Retrieves a
MappingProject from the repository. |
void |
updateMappingProject(MappingProject mappingProject)
Updates a MappingProject in the repository.
|
MappingProject addMappingProject(String name, String target)
MappingProjecttarget - name of the first target entityList<MappingProject> getAllMappingProjects()
MappingProjects.MappingProjects.void updateMappingProject(MappingProject mappingProject)
MappingTargets, EntityMappings and
AttributeMappings are updated.mappingProject - the MappingProject to update.MappingProject getMappingProject(String identifier)
MappingProject from the repository.identifier - ID of the MappingProjectlong applyMappings(String mappingProjectId, String entityTypeId, Boolean addSourceAttribute, String packageId, String label, org.molgenis.jobs.Progress progress)
MappingTargetmappingProjectId - the id of the MappingProject whose mappings are appliedentityTypeId - the name of the entity to map toaddSourceAttribute - boolean indicating if the 'source' attribute should be added to the target repositorypackageId - the id of the destination Package, ignored when mapping to existing EntityTypelabel - label of the target EntityType, ignored when mapping to existing EntityTypeprogress - progress of the mappingvoid deleteMappingProject(String mappingProjectId)
MappingProjectmappingProjectId - id of the MappingProject to deleteMappingProject cloneMappingProject(String mappingProjectId)
MappingProject. Deep copies all related mappings. Automatically generates name for cloned
MappingProject.mappingProjectId - id of the MappingProject to cloneMappingProjectMappingProject cloneMappingProject(String mappingProjectId, String clonedMappingProjectName)
MappingProject. Deep copies all related mappings.mappingProjectId - id of the MappingProject to cloneclonedMappingProjectName - name of the cloned MappingProjectMappingProjectStream<EntityType> getCompatibleEntityTypes(EntityType target)
EntityTypes that are valid as a mapping target.target - EntityType of the mapping targetEntityTypesCopyright © 2018 Pivotal Software, Inc.. All rights reserved.