Uploaded image for project: 'Repository'
  1. Repository
  2. REPOSITORY-428

Migrate all users store in JCR to comply with the new API

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.LATER
    • 4.2.0
    • None
    • None
    • 1 - Middle term
    • 1 - Easy

      The implementation of the new attribute API implies a new storage.

      The new API manages reading users stored with both new and old ways but it would be better to migrate all stored users to the new way.

      There is only differences for multiple users. See below the example for a data named myUsers with 2 entries:

      Old storage

      • ametys:myUsers - jcr:primaryType: ametys:user, ametys:login: toto, ametys:populationId: pop
      • ametys:myUsers[2] - jcr:primaryType: ametys:user, ametys:login: tata, ametys:populationId: pop

       

      New storage

      • ametys:myUsers - jcr:primaryType: ametys:multipleItem, typeId: user
        • ametys:1 - jcr:primaryType: ametys:user, ametys:login: toto, ametys:populationId: pop
        • ametys:2 - jcr:primaryType: ametys:user, ametys:login: tata, ametys:populationId: pop

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

              Created:
              Updated: