* @author Olivier Lamy
* @since 1.4-M4
*/
-@Service( "userConfiguration#archiva" )
+@Service("userConfiguration#archiva")
public class DefaultRedbackRuntimeConfigurationAdmin
implements RedbackRuntimeConfigurationAdmin, UserConfiguration
{
private ArchivaConfiguration archivaConfiguration;
@Inject
- @Named( value = "userConfiguration#redback" )
+ @Named(value = "userConfiguration#redback")
UserConfiguration userConfiguration;
@Inject
- @Named( value = "cache#users" )
+ @Named(value = "cache#users")
private Cache usersCache;
@PostConstruct
String userManagerImpl = userConfiguration.getString( UserConfigurationKeys.USER_MANAGER_IMPL );
if ( StringUtils.isNotEmpty( userManagerImpl ) )
{
- redbackRuntimeConfiguration.getUserManagerImpls().add( userManagerImpl );
+ if ( StringUtils.contains( userManagerImpl, ',' ) )
+ {
+ String[] impls = StringUtils.split( userManagerImpl, ',' );
+ for ( String impl : impls )
+ {
+ redbackRuntimeConfiguration.getUserManagerImpls().add( impl );
+ }
+ }
+ else
+ {
+ redbackRuntimeConfiguration.getUserManagerImpls().add( userManagerImpl );
+ }
}
// now ldap