com.atlassian.greenhopper.service.issue.callback
Class IssueAndParentKeyCallback
java.lang.Object
com.atlassian.greenhopper.service.issue.callback.AbstractIssueDataCallback
com.atlassian.greenhopper.service.issue.callback.IssueAndParentKeyCallback
- All Implemented Interfaces:
- IssueDataCallback
public class IssueAndParentKeyCallback
- extends AbstractIssueDataCallback
- implements IssueDataCallback
Collect issue keys found and map them to their parent issue's key
Method Summary |
void |
fieldData(java.lang.Long issueId,
java.lang.String issueKey,
java.lang.String fieldName,
java.lang.String parentId)
This callback is being called for every issue that matches the query. |
java.util.Set<java.lang.String> |
getFields()
see DocumentConstants for possible values. |
java.util.Map<java.lang.String,java.lang.String> |
getIssueToParentKeyMap()
Returns a mapping from issue keys to their parent issue's key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IssueAndParentKeyCallback
public IssueAndParentKeyCallback()
getFields
public java.util.Set<java.lang.String> getFields()
- Description copied from interface:
IssueDataCallback
- see DocumentConstants for possible values. These are the issue fields that we want to read from the Lucene index.
- Specified by:
getFields
in interface IssueDataCallback
- Overrides:
getFields
in class AbstractIssueDataCallback
fieldData
public void fieldData(java.lang.Long issueId,
java.lang.String issueKey,
java.lang.String fieldName,
java.lang.String parentId)
- Description copied from interface:
IssueDataCallback
- This callback is being called for every issue that matches the query. For memory efficiency, try to avoid buffering all results in memory but
rather stream them to the target object, like a REST template.
- Specified by:
fieldData
in interface IssueDataCallback
- Overrides:
fieldData
in class AbstractIssueDataCallback
fieldName
- : The name of the field that this value belongs to. One of the fields specified in getFields(). See DocumentConstants for
possible values.parentId
- : The raw Lucene data for the given field. Can be null.
getIssueToParentKeyMap
public java.util.Map<java.lang.String,java.lang.String> getIssueToParentKeyMap()
- Returns a mapping from issue keys to their parent issue's key. If the value is null then the issue is
not a sub-task.
- Returns:
- the map; never null
Copyright © 2007-2014 Atlassian. All Rights Reserved.