You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Frank van Lankvelt (JIRA)" <ji...@apache.org> on 2013/11/04 15:44:17 UTC

[jira] [Created] (JCR-3690) Allow Node Type Registry subclasses to check for conflicting content

Frank van Lankvelt created JCR-3690:
---------------------------------------

             Summary: Allow Node Type Registry subclasses to check for conflicting content
                 Key: JCR-3690
                 URL: https://issues.apache.org/jira/browse/JCR-3690
             Project: Jackrabbit Content Repository
          Issue Type: Improvement
          Components: jackrabbit-core
            Reporter: Frank van Lankvelt
             Fix For: 2.6.5, 2.7.2
         Attachments: JCR-3690.patch

The NodeTypeRegistry now throws an exception when a node type is reregistered with non-trivial changes.  There is some commented-out code indicating what should happen in that case, i.e. check whether conflicting content exists, but that is (obviously) not executed.

The proposal is to delegate checking whether the diff can be applied to the checkForConflictingContent method, so that it can determine what to do.  Subclasses can then be enriched with namespace-dependent logic, which may not necessarily involve the full check that is required in principle.



--
This message was sent by Atlassian JIRA
(v6.1#6144)