@Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.READ_COMMITTED) public void initializeNzbStorage(String newNzbPath) { Site defaultSite = siteDAO.getDefaultSite(); defaultSite.setNzbPath(newNzbPath); siteDAO.update(defaultSite); DefaultFileSystemServiceImpl fileSystemServiceImpl = (DefaultFileSystemServiceImpl) fileSystemService; config.init(); fileSystemServiceImpl.init(); }
@Transactional public void updateSite(Site site) { siteDAO.update(site); }