Ifd:correctSpellingForDescription

API version 2
public IfdDescription correctSpellingForDescription (                                         IfdDescription description,                                          String session_id ) throws IfdServerException

Function to update the spelling in a description. This means that we assume the changes in IfdDescription are valid for all concepts that use this as a description (comment or definition).

Input:
 * - Description to change spelling for.
 * session_id - The session id for the active user

Returns:
 * IfdDescription - The changed description.

API version 3
public IfdDescription correctSpellingForDescription (                                         String session_id,                                          IfdDescription description) throws IfdServerException

EXPRESS Heading QUERY FUNCTION correctSpellingForDescription(                     description : IfdDescription): IfdDescription;

The function corrects text and/or type of specified description.

Input: IfdDescription description -fully specified description to be changed in its text, with the following attributes:
 * session_id - The session id for the active user
 * guid – unique database id of the description, that was set to it in creation, the value shall be specified to find original description in IFD population;
 * language – language of the description specified with any of the following: guid (high priority), language_code, name_in_english or name_in_self;
 * description – new text of the description;
 * description_type – type of the description: 'DEFINITION' or 'COMMENT';
 * preferred_by – list of organization that prefer the description, ignored in the input

Returns:
 * IfdDescription - Fully specified corrected description with may be changed guid.

Difference with v.2.00
 * (66)	The function in v.2.00 did change description type, did not check if any description with the same text/type/language exists yet, did not check user’s rights to modify contexts.

Comments: