org.jenkins.plugins.audit2db.internal.reports
Class JobsByDateReportImpl
java.lang.Object
org.jenkins.plugins.audit2db.internal.reports.AbstractDbAuditReport
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 classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface hudson.model.Action |
getIconFileName |
Methods inherited from interface hudson.model.Describable |
getDescriptor |
JobsByDateReportImpl
public JobsByDateReportImpl()
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.