jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "angela (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-251) CommitEditor is global to ContentRepository instance
Date Fri, 17 Aug 2012 15:33:38 GMT

    [ https://issues.apache.org/jira/browse/OAK-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13436798#comment-13436798
] 

angela commented on OAK-251:
----------------------------

initial draft in Revision: 1374309... for from perfect but at least allows
us to play around with additional (non-hardcoded) validators.

                
> CommitEditor is global to ContentRepository instance
> ----------------------------------------------------
>
>                 Key: OAK-251
>                 URL: https://issues.apache.org/jira/browse/OAK-251
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>            Reporter: angela
>
> the CommitEditor (and thus the complete commit validation) is currently
> defined globally for the ContentRepository:
>    public ContentRepositoryImpl(MicroKernel microKernel, QueryIndexProvider indexProvider,
>             CommitEditor commitEditor) {
>         nodeStore = new KernelNodeStore(microKernel);
>         nodeStore.setEditor(commitEditor);
> while this might work for hardcoded editors/validators this doesn't work
> for those parts of the commit validation process that are depending on
> the content session (think of permission checks) or require a 
> content session for execution (access to value factory, query engine etc.)
> if we want to adapt the validator concept for all kinds of commit 
> validation this issue needs to be addressed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message