Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-9988

[New attribute API] Manage data comparison for all types

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.8.0
    • 4.3.0
    • None
    • None

      In all data types, we have a method to compare values. This values can be multiple or single. Bu some types are not able to do the comparison for multiple values.

      With the old API, multiple values were not managed at all for these types, so the comparison of multiple values wasn't implemented.

      The comparison of multiple values is based on the equlity of the different values in the 2 given arrays. So, to managed the comparison of multiple values, the objects manipulated by these types must implement the .equals and .hashCode methods.

      Concerned types are: binary, rich-text, multilingual string, geocode, reference and file

      Be careful with the rich-text type: implement equals based on the data of the rich-text can be very long, and the algorithm of comparison for multiple values will call the equals method several times..

            Unassigned Unassigned
            cbayle Caroline Bayle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: