Coverage Report - org.apache.maven.archiva.reporting.RepositoryStatisticsReportGenerator
 
Classes in this File Line Coverage Branch Coverage Complexity
RepositoryStatisticsReportGenerator
N/A
N/A
0
 
 1  
 package org.apache.maven.archiva.reporting;
 2  
 
 3  
 /*
 4  
  * Licensed to the Apache Software Foundation (ASF) under one
 5  
  * or more contributor license agreements.  See the NOTICE file
 6  
  * distributed with this work for additional information
 7  
  * regarding copyright ownership.  The ASF licenses this file
 8  
  * to you under the Apache License, Version 2.0 (the
 9  
  * "License"); you may not use this file except in compliance
 10  
  * with the License.  You may obtain a copy of the License at
 11  
  *
 12  
  *  http://www.apache.org/licenses/LICENSE-2.0
 13  
  *
 14  
  * Unless required by applicable law or agreed to in writing,
 15  
  * software distributed under the License is distributed on an
 16  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 17  
  * KIND, either express or implied.  See the License for the
 18  
  * specific language governing permissions and limitations
 19  
  * under the License.
 20  
  */
 21  
 
 22  
 import java.util.Date;
 23  
 import java.util.List;
 24  
 
 25  
 import org.apache.maven.archiva.model.RepositoryContentStatistics;
 26  
 
 27  
 /**
 28  
  * RepositoryStatisticsReportGenerator
 29  
  * 
 30  
  * @version $Id: RepositoryStatisticsReportGenerator.java
 31  
  */
 32  
 public interface RepositoryStatisticsReportGenerator
 33  
 {
 34  
     public static final String JAR_TYPE = "jar";
 35  
     
 36  
     public static final String WAR_TYPE = "war";
 37  
     
 38  
     public static final String POM_TYPE = "pom";
 39  
 
 40  
     public static final String EAR_TYPE = "ear";
 41  
 
 42  
     public static final String DLL_TYPE = "dll";
 43  
 
 44  
     public static final String EXE_TYPE = "exe";
 45  
 
 46  
     public static final String ZIP_TYPE = "distribution-zip";
 47  
 
 48  
     public static final String MAVEN_PLUGIN = "maven-plugin";
 49  
     
 50  
     public static final String ARCHETYPE = "archetype";
 51  
     
 52  
     /**
 53  
      * Generate report with limits. Used for pagination.
 54  
      * 
 55  
      * @param repoContentStats
 56  
      * @param repository
 57  
      * @param startDate
 58  
      * @param endDate
 59  
      * @param limits
 60  
      * @return
 61  
      * @throws ArchivaReportException
 62  
      */
 63  
     public List<RepositoryStatistics> generateReport( List<RepositoryContentStatistics> repoContentStats, String repository, Date startDate, Date endDate, DataLimits limits )
 64  
         throws ArchivaReportException;
 65  
     
 66  
     /**
 67  
      * Generate report without limits. Used for exporting the report.
 68  
      * 
 69  
      * @param repoContentStats
 70  
      * @param repository
 71  
      * @param startDate
 72  
      * @param endDate
 73  
      * @param firstStatsOnly TODO
 74  
      * @return
 75  
      * @throws ArchivaReportException
 76  
      */
 77  
     public List<RepositoryStatistics> generateReport( List<RepositoryContentStatistics> repoContentStats, String repository, Date startDate, Date endDate, boolean firstStatsOnly )
 78  
         throws ArchivaReportException; 
 79  
 }