Ifd:mergeDuplicates

API version 2
Function public IfdConcept mergeDuplicates (                                   String guid_to_keep,                                    String guid_to_merge,                                    String session_id ) throws IfdServerException

EXPRESS heading QUERY_FUNCTION mergeDuplicates(                  guid_to_keep: STRING;                   guid_to_merge: STRING) : IfdConcept;

''Method to merge two concepts found to be identical. None of the concepts are deleted, but all information is trasferred from the concept_to_merge to the concept_to_keep and the concept_to_merge gets the status TRANSFERRED''

Input:
 * - the guid of the concept to retrieve all information from the concept_to_merge.
 * - the guid of the concept to be merged. The status of the concept will be set to TRANSFERRED
 * - the session id for the current user

Return:
 * - the merged concept.

API version 3
Function public IfdConcept mergeDuplicates (                                   String session_id,                                    String guid_to_keep,                                    String guid_to_merge) throws IfdServerException

EXPRESS Heading QUERY_FUNCTION mergeDuplicates(                      guid_to_keep,                       guid_to_merge : STRING): IfdConcept;

''Method to merge two concepts found to be identical. None of the concepts are deleted, but all information is trasferred from the concept_to_merge to the concept_to_keep and the concept_to_merge gets the status TRANSFERRED''

Input:
 * - the session id for the current user
 * - global unique id of the target concept;
 * - global unique id of the concept to be merged with target. The status of the concept will be set to TRANSFERRED

Return:
 * - Fully specified target concept (attributes – see getConcept description).

Difference against v.2.00
 * (106)	In v.2.00 the function did not check if logged user is contexts’ owner (if some of the input concepts are context);
 * (107)	In v.2.00 the function raised error merging relationships of concepts if they are different in types. As result – part of relationships would not merged and invalid IFD population

Comments: