} finally { if (txBeginHere && tx != null && tx.isStarted()) { tx.commit();
} finally { if (txBeginHere && tx != null && tx.isStarted()) { tx.commit();
} finally { if (txBeginHere && tx != null && tx.isStarted()) { tx.commit();
} finally { if (txBeginHere && tx != null && tx.isStarted()) { tx.commit();
} finally { if (txBeginHere && tx != null && tx.isStarted()) { tx.commit();
} finally { if (txBeginHere && tx != null && tx.isStarted()) { tx.commit();
@Override public List<String> getAllExtensionsRequires( String securityToken, String extensionName) { WikittyTransaction tx = WikittyTransaction.get(); boolean txBeginHere = false; try { if (!tx.isStarted()) { tx.begin(); txBeginHere = true; } List<String> result = getExtensionStorage() .getAllExtensionsRequires(tx, extensionName); return result; } catch (WikittyException ex) { if (tx != null && tx.isStarted()) { tx.rollback(); } throw ex; } catch (Exception eee) { if (tx != null && tx.isStarted()) { tx.rollback(); } throw new WikittyException(String.format( "Can't retrieve all required extension for %s", extensionName), eee); } finally { if (txBeginHere && tx != null && tx.isStarted()) { tx.commit(); } } }
} finally { if (txBeginHere && tx != null && tx.isStarted()) { tx.commit();
@Override public boolean isDeleted(String securityToken, String wikittyId) { WikittyTransaction tx = WikittyTransaction.get(); boolean txBeginHere = false; try { if (!tx.isStarted()) { tx.begin(); txBeginHere = true; } boolean result = getWikittyStorage().isDeleted(tx, wikittyId); return result; } catch (WikittyException ex) { if (tx != null && tx.isStarted()) { tx.rollback(); } throw ex; } catch (Exception eee) { if (tx != null && tx.isStarted()) { tx.rollback(); } throw new WikittyException("Can't test existance", eee); } finally { if (txBeginHere && tx != null && tx.isStarted()) { tx.commit(); } } }
@Override public List<String> getAllExtensionIds(String securityToken) { WikittyTransaction tx = WikittyTransaction.get(); boolean txBeginHere = false; try { if (!tx.isStarted()) { tx.begin(); txBeginHere = true; } List<String> result = getExtensionStorage().getAllExtensionIds(tx); return result; } catch (WikittyException ex) { if (tx != null && tx.isStarted()) { tx.rollback(); } throw ex; } catch (Exception eee) { if (tx != null && tx.isStarted()) { tx.rollback(); } throw new WikittyException("Can't retrieve all extension's ids", eee); } finally { if (txBeginHere && tx != null && tx.isStarted()) { tx.commit(); } } }
@Override public boolean exists(String securityToken, String wikittyId) { WikittyTransaction tx = WikittyTransaction.get(); boolean txBeginHere = false; try { if (!tx.isStarted()) { tx.begin(); txBeginHere = true; } boolean result = getWikittyStorage().exists(tx, wikittyId); return result; } catch (WikittyException ex) { if (tx != null && tx.isStarted()) { tx.rollback(); } throw ex; } catch (Exception eee) { if (tx != null && tx.isStarted()) { tx.rollback(); } throw new WikittyException("Can't test existance", eee); } finally { if (txBeginHere && tx != null && tx.isStarted()) { tx.commit(); } } }
@Override public WikittyEvent deleteTree(String securityToken, String thesaurusId) { WikittyTransaction tx = WikittyTransaction.get(); boolean txBeginHere = false; try { if (!tx.isStarted()) { tx.begin(); txBeginHere = true; } List<String> allTreeNodeId = getRecursiveTreeNodeId( securityToken, thesaurusId); WikittyEvent result = delete(securityToken, allTreeNodeId); return result; } catch (WikittyException ex) { if (tx != null && tx.isStarted()) { tx.rollback(); } throw ex; } catch (Exception eee) { if (tx != null && tx.isStarted()) { tx.rollback(); } throw new WikittyException("Can't delete tree", eee); } finally { if (txBeginHere && tx != null && tx.isStarted()) { tx.commit(); } } }
} finally { if (txBeginHere && tx != null && tx.isStarted()) { tx.commit();
} finally { if (txBeginHere && tx != null && tx.isStarted()) { tx.commit();
} finally { if (txBeginHere && tx != null && tx.isStarted()) { tx.commit();
} finally { if (txBeginHere && tx != null && tx.isStarted()) { tx.commit();
} finally { if (txBeginHere && tx != null && tx.isStarted()) { tx.commit();
} finally { if (txBeginHere && tx != null && tx.isStarted()) { tx.commit();