Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-383

Add simple JavaScript (Rhino) Wrappers for Version and VersionHistory interfaces

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Scripting
    • Labels:
      None

      Description

      SLING-382 reported an issue handling the JCR Version and VersionHistory objects, which were wrapped as JCR Nodes. The cause is that there are no wrappers for these interfaces but as both Version and VersionHistory extend Node, the Node wrapper was used. This prevents using the Version and VersionHistory methods.

      SLING-382 implemented a workaround for this. I think the correct solution would be to add simple wrappers for the Version and VersionHistory objects which extend from the ScriptableNode wrapper and thus provide the Version and VersionHistory methods as well as the Node methods.

        Attachments

        1. SLING-383.patch
          19 kB
          Bertrand Delacretaz

          Issue Links

            Activity

              People

              • Assignee:
                bdelacretaz Bertrand Delacretaz
                Reporter:
                fmeschbe Felix Meschberger
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: