Class DDSServicesUIHelperBean

java.lang.Object
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:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
    Object used to store Dates and labels for the dates
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor for the DDSServicesUIHelperBean object
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static final String
    Return a string for the current time and date, sutiable for display in log files and output to standout:
    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 final void
    Output a line of text to standard out, with datestamp, if debug is set to true.
    protected final void
    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 Details

    • DDSServicesUIHelperBean

      public DDSServicesUIHelperBean()
      Constructor for the DDSServicesUIHelperBean object
  • Method Details

    • 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