jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <mreut...@adobe.com>
Subject RE: Oak & JCR versioning
Date Wed, 05 Dec 2012 12:44:37 GMT
Hi,

> From: Jukka Zitting [mailto:jukka.zitting@gmail.com]
> On Wed, Dec 5, 2012 at 12:18 PM, Marcel Reutegger
> <mreutegg@adobe.com> wrote:
> > sounds good to me. though, I initially didn't plan to implement a Validator
> > at all ;) the CommitHook should ensure that the modifications it does are
> > consistent. but yes, better safe than sorry...
> 
> OK. We can start with a pretty trivial VersionValidator that for
> example just verifies that the jcr:baseVersion references a nt:version
> node within the correct nt:versionHistory node referenced by the
> jcr:versionHistory property. It perhaps could also sure that a
> specific version label occurs only once within a version history. Most
> of the remaining essential validation should already come from the
> TypeValidator.

you are right, I didn't think of the TypeValidator. That should already cover
for quite some cases. i.e. all the static constraints that are described by the
version related node type.

Regards
 Marcel



Mime
View raw message