org.jenkins.plugins.audit2db.internal.reports
Class JobsByDateReportImpl

java.lang.Object
  extended by org.jenkins.plugins.audit2db.internal.reports.AbstractDbAuditReport
      extended by org.jenkins.plugins.audit2db.internal.reports.JobsByDateReportImpl
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Action, hudson.model.Describable<DbAuditReport>, hudson.model.ModelObject, DbAuditReport, JobsByDateReport

@Extension
public class JobsByDateReportImpl
extends AbstractDbAuditReport
implements JobsByDateReport

Author:
Marco Scata

Nested Class Summary
static class JobsByDateReportImpl.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
JobsByDateReportImpl()
           
 
Method Summary
 String getDateGenerated()
           
 String getDisplayName()
           
 String getEndDateParam(String dateString)
          Checks the given date string and, if invalid, returns a default date.
 Map<String,List<BuildDetails>> getProjectExecutions(String startDateString, String endDateString)
          Retrieves a number of project executions that were started or have ended within the given dates.
 String getReportDescription()
           
 String getReportDisplayedInfo()
           
 String getStartDateParam(String dateString)
          Checks the given date string and, if invalid, returns a default date.
 String getUrlName()
           
 
Methods inherited from class org.jenkins.plugins.audit2db.internal.reports.AbstractDbAuditReport
getDescriptor, getIconFileName, getJenkinsHostname, getJenkinsIpAddr, getRepository, setRepository
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jenkins.plugins.audit2db.reports.DbAuditReport
getJenkinsHostname, getJenkinsIpAddr, getRepository, setRepository
 
Methods inherited from interface hudson.model.Action
getIconFileName
 
Methods inherited from interface hudson.model.Describable
getDescriptor
 

Constructor Detail

JobsByDateReportImpl

public JobsByDateReportImpl()
Method Detail

getDateGenerated

public String getDateGenerated()
Specified by:
getDateGenerated in interface DbAuditReport
Returns:
the date and time in which the report was generated.

getStartDateParam

public String getStartDateParam(String dateString)
Description copied from interface: JobsByDateReport
Checks the given date string and, if invalid, returns a default date.

Specified by:
getStartDateParam in interface JobsByDateReport
Parameters:
dateString - a date in string format.
Returns:
a valid start date string.

getEndDateParam

public String getEndDateParam(String dateString)
Description copied from interface: JobsByDateReport
Checks the given date string and, if invalid, returns a default date.

Specified by:
getEndDateParam in interface JobsByDateReport
Parameters:
dateString - a date in string format.
Returns:
a valid end date string.

getProjectExecutions

public Map<String,List<BuildDetails>> getProjectExecutions(String startDateString,
                                                           String endDateString)
Description copied from interface: JobsByDateReport
Retrieves a number of project executions that were started or have ended within the given dates. Each project can have multiple executions, so this method returns a map where each entry's key is a project name, and its value is a list of executions for that project.

Specified by:
getProjectExecutions in interface JobsByDateReport
Parameters:
startDateString - a valid start date.
endDateString - a valid end date.
Returns:
a map of execution lists, keyed by project name.

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject

getUrlName

public String getUrlName()
Specified by:
getUrlName in interface hudson.model.Action

getReportDescription

public String getReportDescription()
Specified by:
getReportDescription in interface DbAuditReport
Returns:
a generic explanation about the report's layout and objectives.

getReportDisplayedInfo

public String getReportDisplayedInfo()
Specified by:
getReportDisplayedInfo in interface DbAuditReport
Returns:
a list of information parts exposed by ths report.


Copyright © 2004-2013. All Rights Reserved.