jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Toper (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-556) Refactoring of the BackupTool
Date Fri, 01 Sep 2006 16:07:25 GMT
     [ http://issues.apache.org/jira/browse/JCR-556?page=all ]

Nicolas Toper updated JCR-556:
------------------------------

    Attachment: patch-jr-010906-SysViewImporter.txt

SysViewImporter: takes a system view XML document and import it as it is in an empty repository.
It is heavily based on the WorkspaceImporter but doesn't extend it (I would have to put too
many methods in protected for this; tell me if you would be ok with this change though). Here
are the differences:
      1/ it escapes the isProtected check and doesn't autoCreate nodes. It checks if there
are some contents in the destination, if yes it throws an exception.
      2/ You have more control through the constructor than the WorkspaceImporter since you
specify which BatchedItemOperations you want to use.
      3/ There are no conflicts/replace so basically, it just creates nodes and so is a lot
simpler thant the WorkspaceImporter.

> Refactoring of the BackupTool
> -----------------------------
>
>                 Key: JCR-556
>                 URL: http://issues.apache.org/jira/browse/JCR-556
>             Project: Jackrabbit
>          Issue Type: Improvement
>            Reporter: Nicolas Toper
>            Priority: Minor
>         Attachments: patch-jr-010906-NodeVersionHistoriesUpdatableStateManager.txt, patch-jr-010906-PropInfo.txt,
patch-jr-010906-RepositoryImpl.txt, patch-jr-010906-SysViewImporter.txt, patch-jr-010906-VersionManagerImpl.txt
>
>
> The BackupTool has still some refactoring to perform. I will propose the patch on this
new issue since we cannot change the JCR-442 (Google wants to see a place where all the Google
SoC work is).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message