com.atlassian.jira.issue.history
Class VersionDateRangeBuilder
java.lang.Object
com.atlassian.jira.issue.history.AbstractDateRangeBuilder
com.atlassian.jira.issue.history.VersionDateRangeBuilder
- All Implemented Interfaces:
- DateRangeBuilder
public class VersionDateRangeBuilder
- extends AbstractDateRangeBuilder
Implementation of DateRangeBuilder - will work for all version fields.
- Since:
- v5.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VersionDateRangeBuilder
public VersionDateRangeBuilder(String fieldName,
String emptyValue)
createInitialChangeItem
protected ChangeHistoryItem createInitialChangeItem(Issue issue)
- Specified by:
createInitialChangeItem
in class AbstractDateRangeBuilder
buildDateRanges
public List<ChangeHistoryItem> buildDateRanges(Issue issue,
List<ChangeHistoryItem> items)
- Specified by:
buildDateRanges
in interface DateRangeBuilder
- Overrides:
buildDateRanges
in class AbstractDateRangeBuilder
- Parameters:
issue
- The issue that is being currently indexeditems
- A Collection of all the @link ChangeHistoryItem)s for that issue.
- Returns:
- A list of items with date ranges
This method then iterates the list and creates the date ranges - it also ensures there is always an
'initial' change state.
Copyright © 2002-2012 Atlassian. All Rights Reserved.