Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-7508

New uid and local/uid EntityReferenceSerializer<String>

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 4.0-milestone-1
    • Component/s: Model
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Serialize a reference into a unique identifier string. This is faster compare to the human readable default string serializer and it provide unique reversible string without requiring complex escaping. Compare to default string serializer, it is aimed to be used only by computer and it will be kept stable over time. These string are comparable and could be used when an string identifier is required (ie: hashmap, caches, storage...). These strings are also a better source for hashing algorithms.

      ie: The string created looks like 4:wiki5:space3:doc for the wiki:space.doc document and 4:wiki5:space3:doc20:wiki:xspace.class[0] for the wiki:space.doc^wiki:xspace.class[0] object.

      The local/uid version is similar to the uid, but is made appropriate for a wiki independent storage. It never contains reference to the wiki itself.

      ie: The string created looks like 5:space3:doc for the wiki:space.doc document and 5:space3:doc15:xspace.class[0] for the wiki:space.doc^wiki:xspace.class[0] object.

        Attachments

          Activity

            People

            • Assignee:
              softec Denis Gervalle
              Reporter:
              softec Denis Gervalle
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: