You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Stefan Guggisberg (JIRA)" <ji...@apache.org> on 2010/10/25 18:23:19 UTC

[jira] Resolved: (JCR-2788) Provide a JackrabbitNode#setMixins(String[] mixinNames) method

     [ https://issues.apache.org/jira/browse/JCR-2788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Guggisberg resolved JCR-2788.
------------------------------------

    Resolution: Fixed

implemented in svn r1027183

> Provide a JackrabbitNode#setMixins(String[] mixinNames) method
> --------------------------------------------------------------
>
>                 Key: JCR-2788
>                 URL: https://issues.apache.org/jira/browse/JCR-2788
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>          Components: jackrabbit-api, jackrabbit-core
>            Reporter: Stefan Guggisberg
>             Fix For: 2.2.0
>
>
> 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).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.