public interface JqlLocalDateSupport
LocalDate
parsing and validation in JQL.JqlDateSupport
Modifier and Type | Method and Description |
---|---|
Date |
convertToDate(LocalDate date)
Converts a LocalDate to a Date using the systems time zone.
|
LocalDate |
convertToLocalDate(Long dateLong)
Try to parse the passed date long.
|
LocalDate |
convertToLocalDate(String dateString)
Try to parse the passed date string using the formats that JQL understands.
|
String |
getIndexedValue(LocalDate date)
Converts a date into the index-friendly format.
|
LocalDate |
getLocalDateFromQueryLiteral(QueryLiteral rawValue)
Try to parse the passed date in query literal.
|
List<LocalDate> |
getLocalDatesFromQueryLiterals(List<QueryLiteral> rawValues)
Try to parse the passed dates in query literals.
|
String |
getLocalDateString(LocalDate date)
Return a string representation of the passed date.
|
boolean |
validate(String dateString)
Check to see if the passed string is a valid date according to JQL.
|
LocalDate convertToLocalDate(String dateString)
dateString
- the string to parse. Cannot be empty or null.IllegalArgumentException
- if the passed dateString is blank or null.LocalDate convertToLocalDate(Long dateLong)
dateLong
- the string to parse. Cannot be empty or null.IllegalArgumentException
- if the passed dateString is blank or null.String getIndexedValue(LocalDate date)
date
- the dateboolean validate(String dateString)
dateString
- the string to check cannot be null.IllegalArgumentException
- if the passed dateString is blank or nullString getLocalDateString(LocalDate date)
date
- the date to convert. Cannot be null.IllegalArgumentException
- if the passed date is null.Date convertToDate(LocalDate date)
date
- the date to convert. Cannot be null.IllegalArgumentException
- if the passed date is null.LocalDate getLocalDateFromQueryLiteral(QueryLiteral rawValue)
rawValue
- the query literal representing the dateList<LocalDate> getLocalDatesFromQueryLiterals(List<QueryLiteral> rawValues)
rawValues
- the query literals representing the datesCopyright © 2002-2018 Atlassian. All Rights Reserved.