com.atlassian.jira.issue.search.searchers.transformer
Interface FieldFlagOperandRegistry

All Known Implementing Classes:
DefaultFieldFlagOperandRegistry

public interface FieldFlagOperandRegistry

Provides a registry for a field, navigator flag values and operand associations.

Since:
v4.0

Method Summary
 Set<String> getFlagForOperand(String fieldName, Operand operand)
          Retrieves the navigator flag values associated with the field name and operand pair.
 Operand getOperandForFlag(String fieldName, String flagValue)
          Retrieves the operand associated with a field and navigator flag value pair.
 

Method Detail

getOperandForFlag

Operand getOperandForFlag(String fieldName,
                          String flagValue)
Retrieves the operand associated with a field and navigator flag value pair. For example the issuetype field has the -2 navigator flag value which maps to the FunctionOperand corresponding to the AllStandardIssueTypesFunction

Parameters:
fieldName - The name of the field
flagValue - The navigator flag value
Returns:
the operand associated with the field and navigator flag value; null if there is none

getFlagForOperand

Set<String> getFlagForOperand(String fieldName,
                              Operand operand)
Retrieves the navigator flag values associated with the field name and operand pair.

Parameters:
fieldName - The name of the field
operand - the Operand
Returns:
The navigator flag value associated with the field name and operand pair; null if there is none


Copyright © 2002-2012 Atlassian. All Rights Reserved.