Ifd:addParents
From dev.ifd-library.org
public IfdConceptInRelationship [] addParents ( String concept_guid, IfdConceptInRelationship[] parents, String rel_context_guid, String session_id ) throws IfdServerException
EXPRESS Heading:
QUERY_FUNCTION addParents(concept_guid : STRING;
parents : LIST OF IfdConceptInRelationship ;
rel_context: IfdContext ) : LIST OF IfdConceptInRelationship;
Function to add one or more parent to a concept. The function takes an array of IfdConceptInRelationship, the concept itself as a global indentifier concept_guid , a global identifier for a relative context rel_context and a session_id as input.
Input:
-
String concept_guid- The guid of the concept to which we want to add parent (must exist in the library) -
IfdConceptInRelationship[] parents- Array of one or more IfdConceptInRelationship. All the concepts in this list must already exist in the library -
String rel_context_guidThe global unique identifier for the relative context. -
String session_id- The session id for the active user
Returns:
-
IfdConceptInRelationship []- An array of IfdConceptInRelationships.
Comments: Wouldn't it be more efficient to only provide the guids of the concept and the guids of the parents to be added, instead of providing whole concepts? What is the benefit of returning an array of concepts? Is this the array of parents? Couldn't it be enough to return true for success or false for failure? Kees Woestenenk.