public class DateTimeFieldChangeLogHelperImpl extends Object implements DateTimeFieldChangeLogHelper
Constructor and Description |
---|
DateTimeFieldChangeLogHelperImpl(DateTimeFormatterFactory dateTimeFormatterFactory) |
Modifier and Type | Method and Description |
---|---|
String |
createChangelogValueForDateField(Date date)
Converts a Date into a string representation for the issue change history.
|
String |
createChangelogValueForDateTimeField(Date date)
Converts a Date into a string representation for the issue change history.
|
String |
renderChangeHistoryValueDate(String dateValue,
String dateStr)
Use this method to render a value for the issue change history that has been stored using the method createChangelogValueForDateField().
|
String |
renderChangeHistoryValueDateTime(String dateTimeValue,
String dateTimeString)
Use this method to render a value for the issue change history that has been stored using the method createChangelogValueForDateTimeField().
|
public DateTimeFieldChangeLogHelperImpl(DateTimeFormatterFactory dateTimeFormatterFactory)
public String createChangelogValueForDateTimeField(Date date)
DateTimeFieldChangeLogHelper
createChangelogValueForDateTimeField
in interface DateTimeFieldChangeLogHelper
date
- the value Date of the (custome)fieldpublic String createChangelogValueForDateField(Date date)
DateTimeFieldChangeLogHelper
createChangelogValueForDateField
in interface DateTimeFieldChangeLogHelper
date
- date the value Date of the (custome)fieldpublic String renderChangeHistoryValueDate(String dateValue, String dateStr)
DateTimeFieldChangeLogHelper
com.atlassian.jira.datetime.DateTimeStyle.DATE
formatter is used to render the change history value.renderChangeHistoryValueDate
in interface DateTimeFieldChangeLogHelper
dateValue
- the value of the ChangeHistoryItem
dateStr
- the string of the ChangeHistoryItem
, if it can't convert the dateValue it will return the dateStr.public String renderChangeHistoryValueDateTime(String dateTimeValue, String dateTimeString)
DateTimeFieldChangeLogHelper
com.atlassian.jira.datetime.DateTimeStyle.DATE_TIME_PICKER
formatter is used to render the change history value.renderChangeHistoryValueDateTime
in interface DateTimeFieldChangeLogHelper
dateTimeValue
- the value of the ChangeHistoryItem
dateTimeString
- the string of the ChangeHistoryItem
, if it can't convert the dateTimeValue it will return the dateStr.Copyright © 2002-2022 Atlassian. All Rights Reserved.