com.atlassian.greenhopper.web.util
Class DatePickerHelper

java.lang.Object
  extended by com.atlassian.greenhopper.web.util.DatePickerHelper

@Service
public class DatePickerHelper
extends java.lang.Object

Encapsulates server side code to use together with the date picker. This basically is date parsing / rendering


Constructor Summary
DatePickerHelper()
           
 
Method Summary
 java.lang.String getCalendarFormat()
          Get the calendar format used by JIRA
static java.lang.String getCalendarLocale(com.atlassian.crowd.embedded.api.User user)
          Does a local check..
 java.lang.String parseDateToString(com.atlassian.crowd.embedded.api.User user, org.joda.time.DateMidnight date)
          Parses a Date into a String.
 java.util.Date parseToDate(com.atlassian.crowd.embedded.api.User user, java.lang.String date)
          parses the string into a date
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatePickerHelper

public DatePickerHelper()
Method Detail

getCalendarFormat

public java.lang.String getCalendarFormat()
Get the calendar format used by JIRA


getCalendarLocale

public static java.lang.String getCalendarLocale(com.atlassian.crowd.embedded.api.User user)
Does a local check.. may be useful for more than the calendar


parseToDate

public java.util.Date parseToDate(com.atlassian.crowd.embedded.api.User user,
                                  java.lang.String date)
                           throws java.text.ParseException
parses the string into a date

Parameters:
date -
Throws:
java.text.ParseException

parseDateToString

public java.lang.String parseDateToString(com.atlassian.crowd.embedded.api.User user,
                                          org.joda.time.DateMidnight date)
Parses a Date into a String.

Parameters:
user -
date -


Copyright © 2007-2012 Atlassian. All Rights Reserved.