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

java.lang.Object
  extended by org.jenkins.plugins.audit2db.internal.reports.DbAuditReportUtils

public abstract class DbAuditReportUtils
extends Object

Author:
Marco Scata

Constructor Summary
DbAuditReportUtils()
           
 
Method Summary
static String dateAsString(Date date, boolean showTime)
          Formats the given date as a string.
static String getEndDateParam(String dateString)
           
static String getStartDateParam(String dateString)
           
static Date stringToDate(String dateString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbAuditReportUtils

public DbAuditReportUtils()
Method Detail

dateAsString

public static String dateAsString(Date date,
                                  boolean showTime)
Formats the given date as a string.

Parameters:
showTime - whether the time part should be shown or not.
Returns:
the string equivalent of the given date.

stringToDate

public static Date stringToDate(String dateString)
Parameters:
dateString - a valid date string.
Returns:
the equivalent Date object, or null if the date string cannot be parsed.

getStartDateParam

public static String getStartDateParam(String dateString)

getEndDateParam

public static String getEndDateParam(String dateString)


Copyright © 2004-2013. All Rights Reserved.