diff options
author | Martin Stockhammer <martin_s@apache.org> | 2019-06-22 08:03:00 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2019-06-22 08:03:00 +0200 |
commit | b48158fdcd72c5f8a9dfc2fd38e2ff60660d6f81 (patch) | |
tree | 2e5926d9973fe48553ce2c2017825e5018385643 /archiva-modules/archiva-base/archiva-repository-admin | |
parent | a52b7f2005ddf040a712ee774909206294833668 (diff) | |
download | archiva-b48158fdcd72c5f8a9dfc2fd38e2ff60660d6f81.tar.gz archiva-b48158fdcd72c5f8a9dfc2fd38e2ff60660d6f81.zip |
Fixing RepositoryGroupAdmin after refactor
Diffstat (limited to 'archiva-modules/archiva-base/archiva-repository-admin')
-rw-r--r-- | archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/group/DefaultRepositoryGroupAdmin.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/group/DefaultRepositoryGroupAdmin.java b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/group/DefaultRepositoryGroupAdmin.java index 142f4f44a..757aa12a8 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/group/DefaultRepositoryGroupAdmin.java +++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/group/DefaultRepositoryGroupAdmin.java @@ -165,7 +165,7 @@ public class DefaultRepositoryGroupAdmin throw new RepositoryAdminException("Removal of repository failed: " + e.getMessage(), e); } mergedRemoteIndexesScheduler.unschedule( - repositoryRegistry.getRepositoryGroup( repositoryGroupId ) ); + repositoryGroup ); triggerAuditEvent( repositoryGroupId, null, AuditEvent.DELETE_REPO_GROUP, auditInformation ); return Boolean.TRUE; @@ -204,6 +204,7 @@ public class DefaultRepositoryGroupAdmin org.apache.archiva.repository.RepositoryGroup rg = repositoryRegistry.getRepositoryGroup( repositoryGroup.getId( ) ); mergedRemoteIndexesScheduler.unschedule( rg ); mergedRemoteIndexesScheduler.schedule( rg, getMergedIndexDirectory( repositoryGroup.getId() ) ); + triggerAuditEvent( repositoryGroup.getId(), null, AuditEvent.MODIFY_REPO_GROUP, auditInformation ); return Boolean.TRUE; } |