Examples of queryRepositoryContentStatistics()


Examples of org.apache.maven.archiva.database.RepositoryContentStatisticsDAO.queryRepositoryContentStatistics()

                try
                {                
                  startDateInDF = getStartDateInDateFormat();
                  endDateInDF = getEndDateInDateFormat();
                 
                    List<RepositoryContentStatistics> contentStats = repoContentStatsDao.queryRepositoryContentStatistics(
                           new RepositoryContentStatisticsByRepositoryConstraint( selectedRepo, startDateInDF, endDateInDF ) );
                                       
                    if( contentStats == null || contentStats.isEmpty() )
                    {  
                        addActionError( "No statistics available for repository. Repository might not have been scanned." );
View Full Code Here

Examples of org.apache.maven.archiva.web.action.admin.repositories.RepositoryContentStatisticsDAOStub.queryRepositoryContentStatistics()

        assertFalse( action.hasActionErrors() );
        assertFalse( action.hasFieldErrors() );

        RepositoryContentStatisticsDAOStub dao =
            (RepositoryContentStatisticsDAOStub) lookup( RepositoryContentStatisticsDAO.class, "jdo" );
        RepositoryContentStatistics stats = dao.queryRepositoryContentStatistics(
            new RepositoryContentStatisticsByRepositoryConstraint( SNAPSHOTS ) ).get( 0 );

        assertEquals(
            "Date of Scan,Total File Count,Total Size,Artifact Count,Group Count,Project Count,Plugins,Archetypes,Jars,Wars,Deployments,Downloads\n" +
                stats.getWhenGathered() + ",0,0,0,0,0,1,0,1,1,0,0\n", IOUtils.toString( action.getInputStream() ) );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.