Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-2788

Provide a JackrabbitNode#setMixins(String[] mixinNames) method

    XMLWordPrintableJSON

    Details

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

      Description

      assume the following scenario:

      • mixin A declares the mandatory property p
      • mixin A' extends from A
      • node n has mixin A'
      • we'd like to migrate/downgrade node n from mixin A' to A

      currently there's no easy way of replacing the assigned mixins.

      assigning A first results in a NOP since A would be redundant.
      removing A' first removes the mandatory property p.

      a new method setMixins(String[]) would allow to migrate
      a node from mixin A' to A while preserving 'shared' content.
      the semantics of setMixins(String[]) would be similar to
      Node.setPrimaryType(String).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                stefan@jira Stefan Guggisberg
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: