user can change only the order of userManagerImpls so take care of that

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1419578 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-12-10 16:46:12 +00:00
parent 48deda62b1
commit 07565fa15f
1 changed files with 5 additions and 0 deletions

View File

@ -76,6 +76,11 @@ public class DefaultArchivaRuntimeConfigurationService
// has user manager impl changed ?
boolean userManagerChanged = archivaRuntimeConfiguration.getUserManagerImpls().size()
!= archivaRuntimeConfigurationAdmin.getArchivaRuntimeConfiguration().getUserManagerImpls().size();
userManagerChanged =
userManagerChanged || ( archivaRuntimeConfiguration.getUserManagerImpls().toString().hashCode()
!= archivaRuntimeConfigurationAdmin.getArchivaRuntimeConfiguration().getUserManagerImpls().toString().hashCode() );
archivaRuntimeConfigurationAdmin.updateArchivaRuntimeConfiguration( archivaRuntimeConfiguration );
if ( userManagerChanged )