Class SimpleFieldSearchConstantsWithEmpty
java.lang.Object
com.atlassian.jira.issue.search.constants.SimpleFieldSearchConstantsWithEmpty
- All Implemented Interfaces:
ClauseInformation
@ThreadSafe
public final class SimpleFieldSearchConstantsWithEmpty
extends Object
implements ClauseInformation
Holds searching constants for simple system fields.
- Since:
- v4.0
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleFieldSearchConstantsWithEmpty
(String indexField, ClauseNames names, String urlParameter, String searcherId, String emptySelectFlag, String emptyIndexValue, String fieldId, Set<Operator> supportedOperators, JiraDataType supportedType) SimpleFieldSearchConstantsWithEmpty
(String indexField, String jqlClauseName, String urlParameter, String searcherId, String emptySelectFlag, String emptyIndexValue, String fieldId, Set<Operator> supportedOperators, JiraDataType supportedType) SimpleFieldSearchConstantsWithEmpty
(String field, Set<Operator> supportedOperators, JiraDataType supportedType) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Provides theJiraDataType
that this clause handles and searches on.Provides a set of the supportedOperator
's that this custom field searcher can handle for its searching.int
hashCode()
toString()
-
Constructor Details
-
SimpleFieldSearchConstantsWithEmpty
public SimpleFieldSearchConstantsWithEmpty(String field, Set<Operator> supportedOperators, JiraDataType supportedType) -
SimpleFieldSearchConstantsWithEmpty
public SimpleFieldSearchConstantsWithEmpty(String indexField, ClauseNames names, String urlParameter, String searcherId, String emptySelectFlag, String emptyIndexValue, String fieldId, Set<Operator> supportedOperators, JiraDataType supportedType) -
SimpleFieldSearchConstantsWithEmpty
-
-
Method Details
-
getIndexField
- Specified by:
getIndexField
in interfaceClauseInformation
- Returns:
- the string that represents the field id in the lucene index; may be null if the clause does not search directly on the index e.g. "saved filter" or "all text" clause.
-
getJqlClauseNames
- Specified by:
getJqlClauseNames
in interfaceClauseInformation
- Returns:
- the allowed JQL clause names.
-
getUrlParameter
-
getSearcherId
-
getSupportedOperators
Description copied from interface:ClauseInformation
Provides a set of the supportedOperator
's that this custom field searcher can handle for its searching.- Specified by:
getSupportedOperators
in interfaceClauseInformation
- Returns:
- a set of supported operators.
-
getDataType
Description copied from interface:ClauseInformation
Provides theJiraDataType
that this clause handles and searches on. This allows us to infer some information about how the search will behave and how it will interact with other elements in the system.For example, if this returns
JiraDataTypes.DATE
then we know that we could provide users with a date picker for an input field, and we know that this clause should only be used by functions that also specify dates.- Specified by:
getDataType
in interfaceClauseInformation
- Returns:
- the JiraDataType that this clause can handle.
- See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-
getEmptySelectFlag
-
getEmptyIndexValue
-
getFieldId
- Specified by:
getFieldId
in interfaceClauseInformation
- Returns:
- the system or custom field id that this clause is associated with; may be null if the clause does not have a corresponding field e.g. "parent issue" or "saved filter" clause.
-