org.jenkins.plugins.audit2db.reports
Interface JobsByDateReport

All Superinterfaces:
hudson.model.Action, DbAuditReport, hudson.model.Describable<DbAuditReport>, hudson.ExtensionPoint, hudson.model.ModelObject
All Known Implementing Classes:
JobsByDateReportImpl

public interface JobsByDateReport
extends DbAuditReport

Author:
Marco Scata

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Method Summary
 String getEndDateParam(String dateString)
          Checks the given date string and, if invalid, returns a default date.
 Map<String,List<BuildDetails>> getProjectExecutions(String startDate, String endDate)
          Retrieves a number of project executions that were started or have ended within the given dates.
 String getStartDateParam(String dateString)
          Checks the given date string and, if invalid, returns a default date.
 
Methods inherited from interface org.jenkins.plugins.audit2db.reports.DbAuditReport
getDateGenerated, getJenkinsHostname, getJenkinsIpAddr, getReportDescription, getReportDisplayedInfo, getRepository, setRepository
 
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
 
Methods inherited from interface hudson.model.Describable
getDescriptor
 

Method Detail

getStartDateParam

String getStartDateParam(String dateString)
Checks the given date string and, if invalid, returns a default date.

Parameters:
dateString - a date in string format.
Returns:
a valid start date string.

getEndDateParam

String getEndDateParam(String dateString)
Checks the given date string and, if invalid, returns a default date.

Parameters:
dateString - a date in string format.
Returns:
a valid end date string.

getProjectExecutions

Map<String,List<BuildDetails>> getProjectExecutions(String startDate,
                                                    String endDate)
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.

Parameters:
startDate - a valid start date.
endDate - a valid end date.
Returns:
a map of execution lists, keyed by project name.


Copyright © 2004-2013. All Rights Reserved.