You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by ju...@apache.org on 2006/07/16 00:21:26 UTC

svn commit: r422303 - in /jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit: backup/ core/RepositoryImpl.java

Author: jukka
Date: Sat Jul 15 15:21:25 2006
New Revision: 422303

URL: http://svn.apache.org/viewvc?rev=422303&view=rev
Log:
JCR-442: Applied Nicolas' patch (patch.txt  [12336377]) to remove the backup classes from core.

Removed:
    jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/backup/
Modified:
    jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java

Modified: jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java?rev=422303&r1=422302&r2=422303&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java (original)
+++ jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java Sat Jul 15 15:21:25 2006
@@ -21,9 +21,6 @@
 import EDU.oswego.cs.dl.util.concurrent.ReentrantWriterPreferenceReadWriteLock;
 import org.apache.commons.collections.map.ReferenceMap;
 import org.apache.jackrabbit.api.JackrabbitRepository;
-import org.apache.jackrabbit.backup.BackupIOHandler;
-import org.apache.jackrabbit.backup.BackupConfig;
-import org.apache.jackrabbit.backup.RepositoryBackup;
 import org.apache.jackrabbit.core.config.FileSystemConfig;
 import org.apache.jackrabbit.core.config.LoginModuleConfig;
 import org.apache.jackrabbit.core.config.PersistenceManagerConfig;
@@ -1843,38 +1840,6 @@
                 }
             }
         }
-    }
-
-    /**
-     *
-     * This method returns a RepositoryBackup object configured to save this repository.
-     *
-     * Some operations are needed to initiate the RepositoryBackup object properly before performing
-     * the backup or restore operation.
-     *
-     * @param conf BackupConfig object containing all the parameters.
-     * @return RepositoryBackup configured
-     * @throws RepositoryException
-     * @throws AccessDeniedException
-     * @throws IOException
-     */
-    public RepositoryBackup getBackupRepository(BackupConfig conf, BackupIOHandler h) throws RepositoryException, IOException, AccessDeniedException {
-        conf.setRepo(this);
-        return (RepositoryBackup) conf.getBackup();
-    }
-
-    /**
-     * For restore operations since the
-     * @return RepositoryBackup to configure
-     * @param source is a pointer to the file to restore
-     * @throws RepositoryException
-     * @throws IOException
-     * @throws AccessDeniedException
-     */
-    public RepositoryBackup getBackupRepository(BackupIOHandler source) throws RepositoryException, IOException, AccessDeniedException {
-        BackupConfig conf = new BackupConfig();
-        conf.setRepo(this);
-        return (RepositoryBackup) conf.getBackup();
     }
 
 }