@Named( value = "cache#users" )
private Cache usersCache;
+ private RedbackRuntimeConfiguration currentRedbackRuntimeConfiguration;
+
@PostConstruct
public void initialize()
throws UserConfigurationException
updateRedbackRuntimeConfiguration( redbackRuntimeConfiguration );
}
+ this.currentRedbackRuntimeConfiguration = redbackRuntimeConfiguration;
+
}
catch ( RepositoryAdminException e )
{
try
{
archivaConfiguration.save( configuration );
+ this.currentRedbackRuntimeConfiguration = redbackRuntimeConfiguration;
}
catch ( RegistryException e )
{
private RedbackRuntimeConfiguration build(
org.apache.archiva.configuration.RedbackRuntimeConfiguration runtimeConfiguration )
{
+ if ( this.currentRedbackRuntimeConfiguration != null )
+ {
+ return this.currentRedbackRuntimeConfiguration;
+ }
RedbackRuntimeConfiguration redbackRuntimeConfiguration =
new BeanReplicator().replicateBean( runtimeConfiguration, RedbackRuntimeConfiguration.class );
cleanupProperties( redbackRuntimeConfiguration );
-t return redbackRuntimeConfiguration;
+ this.currentRedbackRuntimeConfiguration = redbackRuntimeConfiguration;
+
+ return redbackRuntimeConfiguration;
}
/**
properties.remove( UserConfigurationKeys.LDAP_WRITABLE );
properties.remove( UserConfigurationKeys.LDAP_GROUPS_USE_ROLENAME );
// cleanup groups <-> role mapping
- for ( Map.Entry<String, String> entry : new HashMap<String, String>( properties ).entrySet() )
- {
- if ( entry.getKey().startsWith( UserConfigurationKeys.LDAP_GROUPS_ROLE_START_KEY ) )
- {
- properties.remove( entry.getKey() );
- }
- }
+ /**for ( Map.Entry<String, String> entry : new HashMap<String, String>( properties ).entrySet() )
+ {
+ if ( entry.getKey().startsWith( UserConfigurationKeys.LDAP_GROUPS_ROLE_START_KEY ) )
+ {
+ properties.remove( entry.getKey() );
+ }
+ }*/
}
private org.apache.archiva.configuration.RedbackRuntimeConfiguration build(