com.atlassian.greenhopper.service.rapid.view.color
Class AbstractCardColorCallback
java.lang.Object
com.atlassian.greenhopper.global.AbstractLoggable
com.atlassian.greenhopper.service.rapid.view.color.AbstractCardColorCallback
- All Implemented Interfaces:
- IssueDataCallback, RapidIssueEntryCallbackComponent
- Direct Known Subclasses:
- AssigneeCardColorCallback, IssueTypeCardColorCallback, PriorityCardColorCallback
public abstract class AbstractCardColorCallback
- extends AbstractLoggable
- implements IssueDataCallback, RapidIssueEntryCallbackComponent
Abstract CallbackComponent implementation
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. |
protected CardColor |
findByValue(java.lang.String value)
|
protected CardColor |
findColorById(java.lang.String id)
|
java.util.Map<java.lang.Long,CardColor> |
getCardColorsForIssues()
|
java.util.Set<java.lang.String> |
getFields()
see DocumentConstants for possible values. |
void |
issueComplete(java.lang.Long issueId,
java.lang.String issueKey)
Called when all fieldData was returned for a single issue. |
void |
processFieldData(java.lang.Long issueId,
java.lang.String issueKey,
java.util.Map<java.lang.String,java.lang.String> data,
RapidIssueEntry entry)
Process the result for a given issue and store the outcome into the issue entry |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCardColorCallback
public AbstractCardColorCallback(RapidView rapidView,
CardColorManager cardColorManager,
CardColorPalette cardColorPalette,
CardColorStrategy strategy,
java.lang.String documentField,
java.util.List<CardColor> colors)
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
- Specified by:
getFields
in interface RapidIssueEntryCallbackComponent
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
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.
issueComplete
public void issueComplete(java.lang.Long issueId,
java.lang.String issueKey)
- Description copied from interface:
IssueDataCallback
- Called when all fieldData was returned for a single issue.
- Specified by:
issueComplete
in interface IssueDataCallback
getCardColorsForIssues
public java.util.Map<java.lang.Long,CardColor> getCardColorsForIssues()
processFieldData
public void processFieldData(java.lang.Long issueId,
java.lang.String issueKey,
java.util.Map<java.lang.String,java.lang.String> data,
RapidIssueEntry entry)
- Description copied from interface:
RapidIssueEntryCallbackComponent
- Process the result for a given issue and store the outcome into the issue entry
- Specified by:
processFieldData
in interface RapidIssueEntryCallbackComponent
findByValue
protected CardColor findByValue(java.lang.String value)
findColorById
protected CardColor findColorById(java.lang.String id)
Copyright © 2007-2012 Atlassian. All Rights Reserved.