Package org.apache.archiva.admin.model.managed

Examples of org.apache.archiva.admin.model.managed.ManagedRepositoryAdmin


    private void prepareAction( List<String> selectedRepositories, List<String> availableRepositories )
        throws Exception
    {
        MockControl managedRepositoryControl = MockControl.createControl( ManagedRepositoryAdmin.class );
        ManagedRepositoryAdmin managedRepositoryAdmin = (ManagedRepositoryAdmin) managedRepositoryControl.getMock();

        Map<String, ManagedRepository> map = new HashMap<String, ManagedRepository>( availableRepositories.size() );
        for ( String repoId : availableRepositories )
        {
            map.put( repoId, new ManagedRepository() );
        }

        managedRepositoryControl.expectAndReturn( managedRepositoryAdmin.getManagedRepositoriesAsMap(), map, 1, 10 );

        managedRepositoryControl.replay();
        action.setManagedRepositoryAdmin( managedRepositoryAdmin );

View Full Code Here


        managedDefaultRepository = repoContent;

        ( (DefaultManagedRepositoryAdmin) applicationContext.getBean(
            ManagedRepositoryAdmin.class ) ).setArchivaConfiguration( config );

        ManagedRepositoryAdmin managedRepositoryAdmin = applicationContext.getBean( ManagedRepositoryAdmin.class );
        if ( managedRepositoryAdmin.getManagedRepository( repo.getId() ) == null )
        {
            managedRepositoryAdmin.addManagedRepository( repo, false, null );
        }

        //config.getConfiguration().addManagedRepository( repo );

        Handler handler = new AbstractHandler()
View Full Code Here

        ArchivaConfiguration archivaConfiguration =
            applicationContext.getBean( "archivaConfiguration#" + configHint, ArchivaConfiguration.class );
        ( (DefaultManagedRepositoryAdmin) applicationContext.getBean(
            ManagedRepositoryAdmin.class ) ).setArchivaConfiguration( archivaConfiguration );

        ManagedRepositoryAdmin managedRepositoryAdmin = applicationContext.getBean( ManagedRepositoryAdmin.class );
        if ( managedRepositoryAdmin.getManagedRepository( repoConfiguration.getId() ) != null )
        {
            managedRepositoryAdmin.deleteManagedRepository( repoConfiguration.getId(), null, false );
        }
        managedRepositoryAdmin.addManagedRepository( repoConfiguration, false, null );
    }
View Full Code Here

            applicationContext.getBean( "archivaConfiguration#" + configHint, ArchivaConfiguration.class );

        ( (DefaultManagedRepositoryAdmin) applicationContext.getBean(
            ManagedRepositoryAdmin.class ) ).setArchivaConfiguration( archivaConfiguration );

        ManagedRepositoryAdmin managedRepositoryAdmin = applicationContext.getBean( ManagedRepositoryAdmin.class );
        if ( managedRepositoryAdmin.getManagedRepository( repoConfiguration.getId() ) != null )
        {
            managedRepositoryAdmin.deleteManagedRepository( repoConfiguration.getId(), null, true );
        }
    }
View Full Code Here

        managedDefaultRepository = repoContent;

        ( (DefaultManagedRepositoryAdmin) applicationContext.getBean(
            ManagedRepositoryAdmin.class ) ).setArchivaConfiguration( config );

        ManagedRepositoryAdmin managedRepositoryAdmin = applicationContext.getBean( ManagedRepositoryAdmin.class );
        if ( managedRepositoryAdmin.getManagedRepository( repo.getId() ) == null )
        {
            managedRepositoryAdmin.addManagedRepository( repo, false, null );
        }

        //config.getConfiguration().addManagedRepository( repo );

        Handler handler = new AbstractHandler()
View Full Code Here

         {
         configuration.removeManagedRepository( managedRepositoryConfiguration );
         }
         configuration.addManagedRepository( repoConfiguration );
         **/
        ManagedRepositoryAdmin managedRepositoryAdmin = applicationContext.getBean( ManagedRepositoryAdmin.class );
        if ( managedRepositoryAdmin.getManagedRepository( repoConfiguration.getId() ) != null )
        {
            managedRepositoryAdmin.deleteManagedRepository( repoConfiguration.getId(), null, false );
        }
        managedRepositoryAdmin.addManagedRepository( repoConfiguration, false, null );
    }
View Full Code Here

         configuration.findManagedRepositoryById( repoConfiguration.getId() );
         if ( managedRepositoryConfiguration != null )
         {
         configuration.removeManagedRepository( managedRepositoryConfiguration );
         }*/
        ManagedRepositoryAdmin managedRepositoryAdmin = applicationContext.getBean( ManagedRepositoryAdmin.class );
        if ( managedRepositoryAdmin.getManagedRepository( repoConfiguration.getId() ) != null )
        {
            managedRepositoryAdmin.deleteManagedRepository( repoConfiguration.getId(), null, true );
        }
    }
View Full Code Here

        managedDefaultRepository = repoContent;

        ( (DefaultManagedRepositoryAdmin) applicationContext.getBean(
            ManagedRepositoryAdmin.class ) ).setArchivaConfiguration( config );

        ManagedRepositoryAdmin managedRepositoryAdmin = applicationContext.getBean( ManagedRepositoryAdmin.class );
        if ( managedRepositoryAdmin.getManagedRepository( repo.getId() ) == null )
        {
            managedRepositoryAdmin.addManagedRepository( repo, false, null );
        }

        //config.getConfiguration().addManagedRepository( repo );

        Handler handler = new AbstractHandler()
View Full Code Here

        ( (DefaultManagedRepositoryAdmin) applicationContext.getBean(
            ManagedRepositoryAdmin.class ) ).setArchivaConfiguration( archivaConfiguration );
        // skygo: Default Validator was not looking at same config
        ( (DefaultRepositoryCommonValidator) applicationContext.getBean(
            RepositoryCommonValidator.class ) ).setArchivaConfiguration( archivaConfiguration );
        ManagedRepositoryAdmin managedRepositoryAdmin = applicationContext.getBean( ManagedRepositoryAdmin.class );
        if ( managedRepositoryAdmin.getManagedRepository( repoConfiguration.getId() ) != null )
        {
            managedRepositoryAdmin.deleteManagedRepository( repoConfiguration.getId(), null, false );
        }
        managedRepositoryAdmin.addManagedRepository( repoConfiguration, false, null );
    }
View Full Code Here

        ( (DefaultManagedRepositoryAdmin) applicationContext.getBean(
            ManagedRepositoryAdmin.class ) ).setArchivaConfiguration( archivaConfiguration );
        // skygo: Default Validator was not looking at same config
        ( (DefaultRepositoryCommonValidator) applicationContext.getBean(
            RepositoryCommonValidator.class ) ).setArchivaConfiguration( archivaConfiguration );
        ManagedRepositoryAdmin managedRepositoryAdmin = applicationContext.getBean( ManagedRepositoryAdmin.class );
        if ( managedRepositoryAdmin.getManagedRepository( repoConfiguration.getId() ) != null )
        {
            managedRepositoryAdmin.deleteManagedRepository( repoConfiguration.getId(), null, true );
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.archiva.admin.model.managed.ManagedRepositoryAdmin

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.