Ifd:removePreference

From dev.ifd-library.org

Jump to: navigation, search

API version 2

public IfdOrganization [] removePreference (
                            String concept_guid,
                            String representation_guid,
                            String session_id )
             throws IfdServerException

EXPRESS heading

QUERY_FUNCTION removePreference(
                   concept_guid : STRING;
                   representation_guid : STRING ) : LIST OF IfdOrganization;


Function to remove an organization from the list of organizations that preferr the given name, description or illustration for a concept. The organization is the organization to which the current user belongs.

Input:

  • concept_guid string - the guid for the concept that the name, description or illustration will no longer be a preferred representation.
  • representation_guid string - the guid for the name, description or illustration that will be the removed from the list of preferred representations for the given concept.
  • session_id string - The session id for the active user

Returns:

  • IfdOrganization [] - An array of organisations having a preferense for the given name, desctiption or illustration for the given concept

API version 3

public IfdOrganization [] removePreference (
                            String session_id,
                            String concept_guid,
                            String representation_guid)
             throws IfdServerException

EXPRESS Heading

QUERY_FUNCTION removePreference(
                      concept_guid,
                      representation_guid	: STRING): LIST OF IfdOrganization;

The function removes preference of the logged user home organization to the specified concept language representation unit (name/description/illustration).

Input:

  • session_id string - The session id for the active user
  • concept_guid string - global unique id of the target concept to remove preference of specified name;
  • representation_guid string - global unique id of the representation unit (name, description or illustration)

Returns:

  • IfdOrganization [] - List of organization that keeps preference of the representation for the concept.

Difference against v.2.00

  • (136) In v.2.00 the function did not check if user has rights to modify context (if specified concept is context instance);
  • (137) In v.2.00 the function did not care about representation units without preferences (constraint in ISO 12006-3)


Back to the API

Comments: