Package org.dlese.dpc.services.dds
Class DDSServicesUIHelperBean
java.lang.Object
org.dlese.dpc.services.dds.DDSServicesUIHelperBean
- All Implemented Interfaces:
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 ClassesModifier and TypeClassDescriptionclassObject used to store Dates and labels for the dates -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the DDSServicesUIHelperBean object -
Method Summary
Modifier and TypeMethodDescriptionprotected static final StringgetDs()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 voidOutput a line of text to standard out, with datestamp, if debug is set to true.protected final voidOutput a line of text to error out, with datestamp.static voidsetDebug(boolean isDebugOuput) Sets the debug attribute
-
Constructor Details
-
DDSServicesUIHelperBean
public DDSServicesUIHelperBean()Constructor for the DDSServicesUIHelperBean object
-
-
Method Details
-
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
Return a string for the current time and date, sutiable for display in log files and output to standout:- Returns:
- The dateStamp value
-
prtlnErr
Output a line of text to error out, with datestamp.- Parameters:
s- The text that will be output to error out.
-
prtln
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
-