mirror of https://github.com/apache/archiva.git
re initialize CookieSettings too
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1420240 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8fc98776f6
commit
0d457b816e
|
@ -23,6 +23,7 @@ import org.apache.archiva.admin.model.beans.ArchivaRuntimeConfiguration;
|
|||
import org.apache.archiva.admin.model.runtime.ArchivaRuntimeConfigurationAdmin;
|
||||
import org.apache.archiva.redback.common.ldap.connection.LdapConnectionConfiguration;
|
||||
import org.apache.archiva.redback.common.ldap.connection.LdapConnectionFactory;
|
||||
import org.apache.archiva.redback.policy.CookieSettings;
|
||||
import org.apache.archiva.redback.policy.PasswordRule;
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
import org.apache.archiva.rest.api.model.UserManagerImplementationInformation;
|
||||
|
@ -107,6 +108,14 @@ public class DefaultArchivaRuntimeConfigurationService
|
|||
passwordRule.initialize();
|
||||
}
|
||||
|
||||
Collection<CookieSettings> cookieSettingsList =
|
||||
applicationContext.getBeansOfType( CookieSettings.class ).values();
|
||||
|
||||
for ( CookieSettings cookieSettings : cookieSettingsList )
|
||||
{
|
||||
cookieSettings.initialize();
|
||||
}
|
||||
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
catch ( RepositoryAdminException e )
|
||||
|
|
Loading…
Reference in New Issue