Package org.apache.archiva.admin.model.beans

Examples of org.apache.archiva.admin.model.beans.RedbackRuntimeConfiguration


        if ( UserConfigurationKeys.LDAP_BIND_AUTHENTICATOR_ENABLED.equals( key ) )
        {
            return getRedbackRuntimeConfiguration().getLdapConfiguration().isBindAuthenticatorEnabled();
        }

        RedbackRuntimeConfiguration conf = getRedbackRuntimeConfiguration();

        if ( conf.getConfigurationProperties().containsKey( key ) )
        {
            return Boolean.valueOf( conf.getConfigurationProperties().get( key ) );
        }

        boolean value = userConfiguration.getBoolean( key, defaultValue );

        conf.getConfigurationProperties().put( key, Boolean.toString( value ) );
        try
        {
            updateRedbackRuntimeConfiguration( conf );
        }
        catch ( RepositoryAdminException e )
View Full Code Here


    public List<String> getList( String key )
    {
        List<String> value = userConfiguration.getList( key );

        RedbackRuntimeConfiguration conf = getRedbackRuntimeConfiguration();
        // TODO concat values
        conf.getConfigurationProperties().put( key, "" );
        try
        {
            updateRedbackRuntimeConfiguration( conf );
        }
        catch ( RepositoryAdminException e )
View Full Code Here

{
    @Test
    public void nonnullConfiguration()
        throws Exception
    {
        RedbackRuntimeConfiguration redbackRuntimeConfiguration =
            getArchivaRuntimeConfigurationService().getRedbackRuntimeConfiguration();
        assertEquals( "jdo", redbackRuntimeConfiguration.getUserManagerImpls().get( 0 ) );
    }
View Full Code Here

    @Test
    public void update()
        throws Exception
    {
        RedbackRuntimeConfiguration redbackRuntimeConfiguration =
            getArchivaRuntimeConfigurationService().getRedbackRuntimeConfiguration();
        assertEquals( "jdo", redbackRuntimeConfiguration.getUserManagerImpls().get( 0 ) );

        redbackRuntimeConfiguration.setUserManagerImpls( Arrays.asList( "foo" ) );

        getArchivaRuntimeConfigurationService().updateRedbackRuntimeConfiguration( redbackRuntimeConfiguration );

        redbackRuntimeConfiguration = getArchivaRuntimeConfigurationService().getRedbackRuntimeConfiguration();
        assertEquals( "foo", redbackRuntimeConfiguration.getUserManagerImpls().get( 0 ) );

    }
View Full Code Here

TOP

Related Classes of org.apache.archiva.admin.model.beans.RedbackRuntimeConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.