DLESE Tools
v1.6.0

org.dlese.dpc.services.dds
Class DDSServicesUIHelperBean

java.lang.Object
  extended by org.dlese.dpc.services.dds.DDSServicesUIHelperBean
All Implemented Interfaces:
Serializable

public class DDSServicesUIHelperBean
extends Object
implements Serializable

A bean that performs functions helpful in the UI. Meant to be an applicateion scoped bean for uses in the JSP pages.

Author:
John Weatherley
See Also:
Serialized Form

Nested Class Summary
 class DDSServicesUIHelperBean.DateLabelPair
          Object used to store Dates and labels for the dates
 
Constructor Summary
DDSServicesUIHelperBean()
          Constructor for the DDSServicesUIHelperBean object
 
Method Summary
protected static String getDs()
          Return a string for the current time and date, sutiable for display in log files and output to standout:
 List getUtcDates()
          A list of UTC dates in the past in the following order: one minute, one hour, one day, one week, one month, one year.
protected  void prtln(String s)
          Output a line of text to standard out, with datestamp, if debug is set to true.
protected  void prtlnErr(String s)
          Output a line of text to error out, with datestamp.
static void setDebug(boolean isDebugOuput)
          Sets the debug attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDSServicesUIHelperBean

public DDSServicesUIHelperBean()
Constructor for the DDSServicesUIHelperBean object

Method Detail

getUtcDates

public List getUtcDates()
A list of UTC dates in the past in the following order: one minute, one hour, one day, one week, one month, one year.

Returns:
A list of UTC dates in the past.

getDs

protected static final String getDs()
Return a string for the current time and date, sutiable for display in log files and output to standout:

Returns:
The dateStamp value

prtlnErr

protected final void prtlnErr(String s)
Output a line of text to error out, with datestamp.

Parameters:
s - The text that will be output to error out.

prtln

protected final void prtln(String s)
Output a line of text to standard out, with datestamp, if debug is set to true.

Parameters:
s - The String that will be output.

setDebug

public static void setDebug(boolean isDebugOuput)
Sets the debug attribute

Parameters:
isDebugOuput - The new debug value

DLESE Tools
v1.6.0