196197198199200201202203204205206
// deleted we can remove VH now. } } finally { wsSession.logout(); } } // remove child versions from VH (if found) // ChildVersionRemoveVisitor cvremover = new
949596979899100101102103104
FileOutputStream fos = new FileOutputStream(pathBackupFile); session.exportWorkspaceSystemView(fos, false, false); } finally { session.logout(); } } catch (RepositoryException e) { log.error("Full backup failed " + getStorageURL().getPath(), e);
879880881882883884885886887888889
// ok - reading all data from backup file; } finally { if (sesion != null) sesion.logout(); } } private void saveChangesLog(WorkspacePersistentDataManager dataManager, TransactionChangesLog changesLog) throws RepositoryException, BackupOperationException
9293949596979899100101102
952953954955956957958959960961962
881882883884885886887888889890891
405406407408409410411412413414415
fail(e.getMessage()); } finally { if (back1 != null) back1.logout(); } } else fail("There are no backup files in " + backDir.getAbsolutePath()); }
811812813814815816817818819820821
rootNode.addNode("node1").setProperty("prop1", "value1"); session.save(); } finally { session.logout(); } } } protected void checkConent(String repositoryName) throws Exception
829830831832833834835836837838839
Node rootNode = session.getRootNode().getNode("test" + index); assertEquals(rootNode.getNode("node1").getProperty("prop1").getString(), "value1"); } finally { session.logout(); } } } private void restore(String repositoryName, RepositoryBackupChain bch, BackupManagerImpl backupManagerImpl)
357358359360361362363364365366367
} finally { if (anonSession != null) { anonSession.logout(); } if (sessionJohnWS1 != null) { sessionJohnWS1.logout();