Package org.exoplatform.services.jcr.impl.backup

Examples of org.exoplatform.services.jcr.impl.backup.BackupException


            super.preRestoreTable(tableName, restoreRule);
         }
      }
      catch (SQLException e)
      {
         throw new BackupException(ExceptionManagementHelper.getFullSQLExceptionMessage(e), e);
      }
      finally
      {
         try
         {
View Full Code Here


   /**
    * {@inheritDoc}
    */
   public void rollback() throws BackupException
   {
      BackupException rollbackException = null;

      try
      {
         super.rollback();
      }
View Full Code Here

            super.postRestoreTable(tableName, restoreRule);
         }
      }
      catch (SQLException e)
      {
         throw new BackupException(e);
      }
      finally
      {
         try
         {
View Full Code Here

      {
         dbClean.clean();
      }
      catch (SQLException e)
      {
         throw new BackupException(e);
      }
   }
View Full Code Here

            postRestoreTable(tableName, restoreRule);
         }
      }
      catch (IOException e)
      {
         throw new BackupException(e);
      }
      catch (SQLException e)
      {
         throw new BackupException("SQL Exception: " + ExceptionManagementHelper.getFullSQLExceptionMessage(e), e);
      }
   }
View Full Code Here

      {
         jdbcConn.commit();
      }
      catch (SQLException e)
      {
         throw new BackupException(e);
      }
   }
View Full Code Here

      {
         jdbcConn.rollback();
      }
      catch (SQLException e)
      {
         throw new BackupException(e);
      }
   }
View Full Code Here

            jdbcConn.close();
         }
      }
      catch (SQLException e)
      {
         throw new BackupException(e);
      }
   }
View Full Code Here

            }
         }
      }
      catch (RepositoryConfigurationException e)
      {
         throw new BackupException(e);
      }
      catch (NamingException e)
      {
         throw new BackupException(e);
      }
      catch (SQLException e)
      {
         throw new BackupException(e);
      }
      catch (IOException e)
      {
         throw new BackupException(e);
      }
   }
View Full Code Here

            for (ValueStorageEntry valueStorage : wsConfig.getContainer().getValueStorages())
            {
               File srcDir = new File(valueStorage.getParameterValue(FileValueStorage.PATH));
               if (!PrivilegedFileHelper.exists(srcDir))
               {
                  throw new BackupException("Can't backup value storage. Directory " + srcDir.getName()
                     + " doesn't exists");
               }
               else
               {
                  File destValuesDir = new File(storageDir, "values");
                  File destDir = new File(destValuesDir, valueStorage.getId());

                  DirectoryHelper.compressDirectory(srcDir, destDir);
               }
            }
         }
      }
      catch (IOException e)
      {
         throw new BackupException(e);
      }
      catch (RepositoryConfigurationException e)
      {
         throw new BackupException(e);
      }
      catch (RepositoryException e)
      {
         throw new BackupException(e);
      }
      finally
      {
         if (backupInfo != null)
         {
            try
            {
               backupInfo.close();
            }
            catch (IOException e)
            {
               throw new BackupException(e);
            }
         }
      }
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.services.jcr.impl.backup.BackupException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.