Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright (C) 2003-2010 eXo Platform SAS.
   *
   * This program is free software; you can redistribute it and/or
   * modify it under the terms of the GNU Affero General Public License
   * as published by the Free Software Foundation; either version 3
   * of the License, or (at your option) any later version.
   *
   * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, see<http://www.gnu.org/licenses/>.
  */
 package org.exoplatform.services.jcr.ext.backup;
 
 
 import java.io.File;

Created by The eXo Platform SAS.
Date: 2010

Author(s):
Alex Reshetnyak
Version:
$Id$
 
 public interface ExtendedBackupManager extends BackupManager
 {
   
Restore existing workspace. Previous data will be deleted. For getting status of workspace restore can use BackupManager.getLastRestore(String repositoryName, String workspaceName) method

Parameters:
workspaceBackupIdentifier backup identifier
workspaceEntry new workspace configuration
asynchronous if 'true' restore will be in asynchronous mode (i.e. in separated thread)
Throws:
BackupOperationException if backup operation exception occurred
BackupConfigurationException if configuration exception occurred
 
    void restoreExistingWorkspace(String workspaceBackupIdentifierString repositoryNameWorkspaceEntry workspaceEntry,
       boolean asynchronousthrows BackupOperationExceptionBackupConfigurationException;

   
Restore existing workspace. Previous data will be deleted. For getting status of workspace restore can use BackupManager.getLastRestore(String repositoryName, String workspaceName) method

Parameters:
log workspace backup log
workspaceEntry new workspace configuration
asynchronous if 'true' restore will be in asynchronous mode (i.e. in separated thread)
Throws:
BackupOperationException if backup operation exception occurred
BackupConfigurationException if configuration exception occurred
 
    void restoreExistingWorkspace(BackupChainLog logString repositoryNameWorkspaceEntry workspaceEntry,
             boolean asynchronousthrows BackupOperationExceptionBackupConfigurationException;

   
Restore existing repository. Previous data will be deleted. For getting status of repository restore can use BackupManager.getLastRestore(String repositoryName) method

Parameters:
repositoryBackupIdentifier backup identifier
repositoryEntry new repository configuration
asynchronous if 'true' restore will be in asynchronous mode (i.e. in separated thread)
Throws:
BackupOperationException if backup operation exception occurred
BackupConfigurationException if configuration exception occurred
 
    void restoreExistingRepository(String repositoryBackupIdentifierRepositoryEntry repositoryEntry,
             boolean asynchronousthrows BackupOperationExceptionBackupConfigurationException;

   
Restore existing repository. Previous data will be deleted. For getting status of repository restore can use BackupManager.getLastRestore(String repositoryName) method

Parameters:
log repository backup log
repositoryEntry new repository configuration
asynchronous if 'true' restore will be in asynchronous mode (i.e. in separated thread)
Throws:
BackupOperationException if backup operation exception occurred
BackupConfigurationException if configuration exception occurred
   void restoreExistingRepository(RepositoryBackupChainLog logRepositoryEntry repositoryEntryboolean asynchronous)
Restore existing workspace. Previous data will be deleted. For getting status of workspace restore can use BackupManager.getLastRestore(String repositoryName, String workspaceName) method WorkspaceEntry for restore should be contains in BackupChainLog.

Parameters:
workspaceBackupIdentifier identifier to workspace backup.
asynchronous if 'true' restore will be in asynchronous mode (i.e. in separated thread)
Throws:
BackupOperationException if backup operation exception occurred
BackupConfigurationException if configuration exception occurred
   void restoreExistingWorkspace(String workspaceBackupIdentifierboolean asynchronous)
            throws BackupOperationException,
            BackupConfigurationException;

   
Restore existing repository. Previous data will be deleted. For getting status of repository restore can use BackupManager.getLastRestore(String repositoryName) method. ReprositoryEntry for restore should be contains in BackupChainLog.

Parameters:
repositoryBackupIdentifier identifier to repository backup.
asynchronous if 'true' restore will be in asynchronous mode (i.e. in separated thread)
Throws:
BackupOperationException if backup operation exception occurred
BackupConfigurationException if configuration exception occurred
   void restoreExistingRepository(String repositoryBackupIdentifierboolean asynchronous)
            throws BackupOperationException,
            BackupConfigurationException;

   
WorkspaceEntry for restore should be contains in BackupChainLog.

Parameters:
workspaceBackupIdentifier identifier to workspace backup.
asynchronous if 'true' restore will be in asynchronous mode (i.e. in separated thread)
Throws:
BackupOperationException if backup operation exception occurred
BackupConfigurationException if configuration exception occurred
   void restoreWorkspace(String workspaceBackupIdentifierboolean asynchronousthrows BackupOperationException,
            BackupConfigurationException;

   
ReprositoryEntry for restore should be contains in BackupChainLog.

Parameters:
repositoryBackupIdentifier identifier to repository backup.
asynchronous if 'true' restore will be in asynchronous mode (i.e. in separated thread)
Throws:
BackupOperationException if backup operation exception occurred
BackupConfigurationException if configuration exception occurred
   void restoreRepository(String repositoryBackupIdentifierboolean asynchronousthrows BackupOperationException,
            BackupConfigurationException;

   
Restore existing workspace. Previous data will be deleted. For getting status of workspace restore can use BackupManager.getLastRestore(String repositoryName, String workspaceName) method WorkspaceEntry for restore should be contains in BackupChainLog.

Parameters:
workspaceBackupSetDir the directory with backup set
asynchronous if 'true' restore will be in asynchronous mode (i.e. in separated thread)
Throws:
BackupOperationException if backup operation exception occurred
BackupConfigurationException if configuration exception occurred
   void restoreExistingWorkspace(File workspaceBackupSetDirboolean asynchronous)
            throws BackupOperationExceptionBackupConfigurationException;

   
Restore existing repository. Previous data will be deleted. For getting status of repository restore can use BackupManager.getLastRestore(String repositoryName) method. ReprositoryEntry for restore should be contains in BackupChainLog.

Parameters:
repositoryBackupSetDir the directory with backup set
asynchronous if 'true' restore will be in asynchronous mode (i.e. in separated thread)
Throws:
BackupOperationException if backup operation exception occurred
BackupConfigurationException if configuration exception occurred
   void restoreExistingRepository(File repositoryBackupSetDirboolean asynchronous)
            throws BackupOperationExceptionBackupConfigurationException;

   
WorkspaceEntry for restore should be contains in BackupChainLog.

Parameters:
workspaceBackupSetDir the directory with backup set
asynchronous if 'true' restore will be in asynchronous mode (i.e. in separated thread)
Throws:
BackupOperationException if backup operation exception occurred
BackupConfigurationException if configuration exception occurred
   void restoreWorkspace(File workspaceBackupSetDirboolean asynchronousthrows BackupOperationException,
            BackupConfigurationException;

   
ReprositoryEntry for restore should be contains in BackupChainLog.

Parameters:
repositoryBackupSetDir the directory with backup set
asynchronous if 'true' restore will be in asynchronous mode (i.e. in separated thread)
Throws:
BackupOperationException if backup operation exception occurred
BackupConfigurationException if configuration exception occurred
   void restoreRepository(File repositoryBackupSetDirboolean asynchronousthrows BackupOperationException,
            BackupConfigurationException;
New to GrepCode? Check out our FAQ X