Class DefaultFieldFlagOperandRegistry
java.lang.Object
com.atlassian.jira.issue.search.searchers.transformer.DefaultFieldFlagOperandRegistry
- All Implemented Interfaces:
FieldFlagOperandRegistry
The default field flag operand registry that maps field name and
navigator flag value pairs to their appropiate operand.
- Since:
- v4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFlagForOperand(String fieldName, Operand operand) Retrieves the navigator flag values associated with the field name and operand pair.getOperandForFlag(String fieldName, String flagValue) Retrieves the operand associated with a field and navigator flag value pair.
-
Constructor Details
-
DefaultFieldFlagOperandRegistry
public DefaultFieldFlagOperandRegistry()
-
-
Method Details
-
getOperandForFlag
Description copied from interface:FieldFlagOperandRegistryRetrieves 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 theFunctionOperandcorresponding to theAllStandardIssueTypesFunction- Specified by:
getOperandForFlagin interfaceFieldFlagOperandRegistry- Parameters:
fieldName- The name of the fieldflagValue- The navigator flag value- Returns:
- the operand associated with the field and navigator flag value; null if there is none
-
getFlagForOperand
Description copied from interface:FieldFlagOperandRegistryRetrieves the navigator flag values associated with the field name and operand pair.- Specified by:
getFlagForOperandin interfaceFieldFlagOperandRegistry- Parameters:
fieldName- The name of the fieldoperand- theOperand- Returns:
- The navigator flag value associated with the field name and operand pair; null if there is none
-