From: James William Dumay Date: Sat, 18 Oct 2008 06:45:02 +0000 (+0000) Subject: Merging from trunk X-Git-Tag: archiva-1.2-M1~34^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4f965b89ccf22ca31a6a49d57569f6578c7c51b4;p=archiva.git Merging from trunk git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/archiva-struts2@705848 13f79535-47bb-0310-9956-ffa450edef68 --- 4f965b89ccf22ca31a6a49d57569f6578c7c51b4 diff --cc archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/reports/GenerateReportAction.java index cb90bc185,0fcb62342..e33004110 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/reports/GenerateReportAction.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/reports/GenerateReportAction.java @@@ -19,33 -19,52 +19,51 @@@ package org.apache.maven.archiva.web.ac * under the License. */ - import org.apache.struts2.interceptor.ServletRequestAware; -import com.opensymphony.webwork.interceptor.ServletRequestAware; -import com.opensymphony.xwork.Preparable; - +import com.opensymphony.xwork2.Preparable; + import org.apache.commons.lang.time.DateFormatUtils; + import org.apache.commons.lang.time.DateUtils; + import org.apache.maven.archiva.configuration.ArchivaConfiguration; import org.apache.maven.archiva.database.ArchivaDAO; + import org.apache.maven.archiva.database.ArchivaDatabaseException; import org.apache.maven.archiva.database.Constraint; + import org.apache.maven.archiva.database.ObjectNotFoundException; + import org.apache.maven.archiva.database.RepositoryContentStatisticsDAO; import org.apache.maven.archiva.database.constraints.RangeConstraint; + import org.apache.maven.archiva.database.constraints.RepositoryContentStatisticsByRepositoryConstraint; import org.apache.maven.archiva.database.constraints.RepositoryProblemByGroupIdConstraint; import org.apache.maven.archiva.database.constraints.RepositoryProblemByRepositoryIdConstraint; import org.apache.maven.archiva.database.constraints.RepositoryProblemConstraint; import org.apache.maven.archiva.database.constraints.UniqueFieldConstraint; + import org.apache.maven.archiva.model.RepositoryContentStatistics; import org.apache.maven.archiva.model.RepositoryProblem; import org.apache.maven.archiva.model.RepositoryProblemReport; + import org.apache.maven.archiva.reporting.ArchivaReportException; + import org.apache.maven.archiva.reporting.DataLimits; + import org.apache.maven.archiva.reporting.RepositoryStatistics; + import org.apache.maven.archiva.reporting.RepositoryStatisticsReportGenerator; import org.apache.maven.archiva.security.ArchivaRoleConstants; - import org.apache.maven.archiva.web.action.PlexusActionSupport; import org.codehaus.plexus.redback.rbac.Resource; - import org.codehaus.plexus.redback.struts2.interceptor.SecureAction; - import org.codehaus.plexus.redback.struts2.interceptor.SecureActionBundle; - import org.codehaus.plexus.redback.struts2.interceptor.SecureActionException; -import org.codehaus.plexus.redback.xwork.interceptor.SecureAction; -import org.codehaus.plexus.redback.xwork.interceptor.SecureActionBundle; -import org.codehaus.plexus.redback.xwork.interceptor.SecureActionException; -import org.codehaus.plexus.xwork.action.PlexusActionSupport; + import org.slf4j.Logger; + import org.slf4j.LoggerFactory; import javax.servlet.http.HttpServletRequest; + + import java.text.ParseException; import java.util.ArrayList; + import java.util.Calendar; import java.util.Collection; + import java.util.Date; import java.util.List; import java.util.Map; import java.util.TreeMap; ++import org.apache.maven.archiva.web.action.PlexusActionSupport; ++import org.apache.struts2.interceptor.ServletRequestAware; ++import org.codehaus.plexus.redback.struts2.interceptor.SecureAction; ++import org.codehaus.plexus.redback.struts2.interceptor.SecureActionBundle; ++import org.codehaus.plexus.redback.struts2.interceptor.SecureActionException; /** - * @plexus.component role="com.opensymphony.xwork.Action" role-hint="generateReport" + * @plexus.component role="com.opensymphony.xwork2.Action" role-hint="generateReport" */ public class GenerateReportAction extends PlexusActionSupport diff --cc archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/reports/pickReport.jsp index 62535c644,62c12bb38..afcbf1c6b --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/reports/pickReport.jsp +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/reports/pickReport.jsp @@@ -22,20 -22,36 +22,36 @@@ Reports - - ++

Reports

- +
- +

Repository Statistics

- ++ + - + - - - ++ ++ ++ + - - ++ ++
+ +

Repository Health

- - - - ++ + + + + - - + +