diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2012-03-29 19:19:08 +0200 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2012-03-29 19:19:08 +0200 |
commit | ca69df1a7c175703dbac9d321e93d2fc13847f83 (patch) | |
tree | 9431bd56eeb7adcd4572c541255e798bf098753d /sonar-core | |
parent | 2dab91a6c29fe829b1413a6ec469ff82a20ee1a7 (diff) | |
download | sonarqube-ca69df1a7c175703dbac9d321e93d2fc13847f83.tar.gz sonarqube-ca69df1a7c175703dbac9d321e93d2fc13847f83.zip |
SONAR-3287 Update UI to adapt labels to deletable resource
=> Make it possible to delete a View or a Developer (resources and
snapshots) through the Sonar UI
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/purge/PurgeDao.java | 2 | ||||
-rw-r--r-- | sonar-core/src/test/java/org/sonar/core/purge/PurgeDaoTest.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/purge/PurgeDao.java b/sonar-core/src/main/java/org/sonar/core/purge/PurgeDao.java index a93661f87a0..d4caa191ce3 100644 --- a/sonar-core/src/main/java/org/sonar/core/purge/PurgeDao.java +++ b/sonar-core/src/main/java/org/sonar/core/purge/PurgeDao.java @@ -137,7 +137,7 @@ public class PurgeDao { } } - public PurgeDao deleteProject(long rootProjectId) { + public PurgeDao deleteResourceTree(long rootProjectId) { final SqlSession session = mybatis.openBatchSession(); final PurgeMapper mapper = session.getMapper(PurgeMapper.class); final PurgeVendorMapper vendorMapper = session.getMapper(PurgeVendorMapper.class); diff --git a/sonar-core/src/test/java/org/sonar/core/purge/PurgeDaoTest.java b/sonar-core/src/test/java/org/sonar/core/purge/PurgeDaoTest.java index 9269f7c4daf..9e7db168941 100644 --- a/sonar-core/src/test/java/org/sonar/core/purge/PurgeDaoTest.java +++ b/sonar-core/src/test/java/org/sonar/core/purge/PurgeDaoTest.java @@ -111,7 +111,7 @@ public class PurgeDaoTest extends DaoTestCase { @Test public void shouldDeleteProject() { setupData("shouldDeleteProject"); - dao.deleteProject(1L); + dao.deleteResourceTree(1L); assertEmptyTables("projects", "snapshots", "action_plans", "action_plans_reviews", "reviews", "review_comments"); } |