4445464748495051525354
l.removeItem("/var"); l.save(); l.logout(); } catch (Exception e) { l.refresh(false); l.logout(); } } for (@SuppressWarnings("rawtypes") Iterator it = services.iterator(); it.hasNext();) {
6566676869707172737475
return JcrResult.failure(e); } catch (IOException e) { return JcrResult.failure(e); } finally { if (session != null) session.logout(); } } protected abstract T execute0(Session session) throws RepositoryException, IOException;
141142143144145146147148149150151
log.error( "ChunkCleanUpTask: General failure while trying to cleanup chunks", t); } finally { if (admin != null) { admin.logout(); } } long end = System.currentTimeMillis(); log.info( "ChunkCleanUpTask finished: Removed {} chunk upload(s) in {}ms ({} chunk upload(s) still active)",
6768697071727374
@Test public void testLogin() throws RepositoryException { final Session s = repository.loginAdministrative(null); assertNotNull(s); s.logout(); } }
90919293949596979899100
Activator.getDefault().getPluginLogger().trace("Failed connecting to repository at " + url, e); errors.append(url).append(" : ").append(e.getMessage()).append('\n'); continue; } finally { if (session != null) { session.logout(); } } } errors.deleteCharAt(errors.length() - 1);
201202203204205206207208209210211
// else impersonate as the owner and logout the admin session again try { return admin.impersonate(new SimpleCredentials(this.classLoaderOwner, new char[0])); } finally { admin.logout(); } } /** * Is this still active?
257258259260261262263264265266267
} } catch (final RepositoryException re) { logger.error("Cannot remove " + path, re); } finally { if ( session != null ) { session.logout(); } } // fall back to false if item does not exist or in case of error return false;
294295296297298299300301302303304
return true; } catch (final RepositoryException re) { logger.error("Cannot rename " + oldName + " to " + newName, re); } finally { if ( session != null ) { session.logout(); } } // fall back to false in case of error or non-existence of oldFileName return false;
513514515516517518519520521522523
} catch (final RepositoryException re) { throw (IOException) new IOException( "Failed to get InputStream for " + name).initCause(re); } finally { if ( session != null ) { session.logout(); } } } /**
534535536537538539540541542543544
} } catch (final RepositoryException se) { logger.error("Cannot get last modification time for " + name, se); } finally { if ( session != null ) { session.logout(); } } // fall back to "non-existent" in case of problems return -1;