com.atlassian.jira.issue.history
Class VersionDateRangeBuilder

java.lang.Object
  extended by com.atlassian.jira.issue.history.AbstractDateRangeBuilder
      extended by 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

Field Summary
 
Fields inherited from class com.atlassian.jira.issue.history.AbstractDateRangeBuilder
MINUS_1
 
Constructor Summary
VersionDateRangeBuilder(String fieldName, String emptyValue)
           
 
Method Summary
 List<ChangeHistoryItem> buildDateRanges(Issue issue, List<ChangeHistoryItem> items)
           
protected  ChangeHistoryItem createInitialChangeItem(Issue issue)
           
 
Methods inherited from class com.atlassian.jira.issue.history.AbstractDateRangeBuilder
changeItemBuilder, createChangeItem, getEmptyValue, getField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionDateRangeBuilder

public VersionDateRangeBuilder(String fieldName,
                               String emptyValue)
Method Detail

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 indexed
items - 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-2014 Atlassian. All Rights Reserved.