com.atlassian.greenhopper.service.issue.callback
Class EpicLabelAndKeyMatchingCallback

java.lang.Object
  extended by com.atlassian.greenhopper.service.issue.callback.AbstractIssueDataCallback
      extended by com.atlassian.greenhopper.service.issue.callback.EpicLabelAndKeyMatchingCallback
All Implemented Interfaces:
IssueDataCallback

public class EpicLabelAndKeyMatchingCallback
extends AbstractIssueDataCallback

Collects the issue key and epic label of epic issues that match the given search term.


Field Summary
 
Fields inherited from class com.atlassian.greenhopper.service.issue.callback.AbstractIssueDataCallback
fields
 
Constructor Summary
EpicLabelAndKeyMatchingCallback(com.atlassian.jira.issue.fields.CustomField epiclabelCustomField, java.lang.String searchTerm, int maxResults)
           
 
Method Summary
 void fieldData(java.lang.Long issueId, java.lang.String issueKey, java.lang.String fieldName, java.lang.String data)
          This callback is being called for every issue that matches the query.
 java.util.Map<java.lang.String,java.lang.String> getIssues()
           
 int getMaxResults()
           
 int getTotalMatches()
           
 
Methods inherited from class com.atlassian.greenhopper.service.issue.callback.AbstractIssueDataCallback
getFields, issueComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EpicLabelAndKeyMatchingCallback

public EpicLabelAndKeyMatchingCallback(com.atlassian.jira.issue.fields.CustomField epiclabelCustomField,
                                       java.lang.String searchTerm,
                                       int maxResults)
Method Detail

fieldData

public void fieldData(java.lang.Long issueId,
                      java.lang.String issueKey,
                      java.lang.String fieldName,
                      java.lang.String data)
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.
data - : The raw Lucene data for the given field. Can be null.

getIssues

public java.util.Map<java.lang.String,java.lang.String> getIssues()

getMaxResults

public int getMaxResults()

getTotalMatches

public int getTotalMatches()


Copyright © 2007-2014 Atlassian. All Rights Reserved.