com.atlassian.jira.issue.search.constants
Class SimpleFieldSearchConstantsWithEmpty

java.lang.Object
  extended by com.atlassian.jira.issue.search.constants.SimpleFieldSearchConstantsWithEmpty
All Implemented Interfaces:
ClauseInformation

@ThreadSafe
public final class SimpleFieldSearchConstantsWithEmpty
extends java.lang.Object
implements ClauseInformation

Holds searching constants for simple system fields.

Since:
v4.0

Constructor Summary
SimpleFieldSearchConstantsWithEmpty(java.lang.String indexField, ClauseNames names, java.lang.String urlParameter, java.lang.String searcherId, java.lang.String emptySelectFlag, java.lang.String emptyIndexValue, java.lang.String fieldId, java.util.Set<Operator> supportedOperators, JiraDataType supportedType)
           
SimpleFieldSearchConstantsWithEmpty(java.lang.String field, java.util.Set<Operator> supportedOperators, JiraDataType supportedType)
           
SimpleFieldSearchConstantsWithEmpty(java.lang.String indexField, java.lang.String jqlClauseName, java.lang.String urlParameter, java.lang.String searcherId, java.lang.String emptySelectFlag, java.lang.String emptyIndexValue, java.lang.String fieldId, java.util.Set<Operator> supportedOperators, JiraDataType supportedType)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 JiraDataType getDataType()
          Provides the JiraDataType that this clause handles and searches on.
 java.lang.String getEmptyIndexValue()
           
 java.lang.String getEmptySelectFlag()
           
 java.lang.String getFieldId()
           
 java.lang.String getIndexField()
           
 ClauseNames getJqlClauseNames()
           
 java.lang.String getSearcherId()
           
 java.util.Set<Operator> getSupportedOperators()
          Provides a set of the supported Operator's that this custom field searcher can handle for its searching.
 java.lang.String getUrlParameter()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleFieldSearchConstantsWithEmpty

public SimpleFieldSearchConstantsWithEmpty(java.lang.String field,
                                           java.util.Set<Operator> supportedOperators,
                                           JiraDataType supportedType)

SimpleFieldSearchConstantsWithEmpty

public SimpleFieldSearchConstantsWithEmpty(java.lang.String indexField,
                                           ClauseNames names,
                                           java.lang.String urlParameter,
                                           java.lang.String searcherId,
                                           java.lang.String emptySelectFlag,
                                           java.lang.String emptyIndexValue,
                                           java.lang.String fieldId,
                                           java.util.Set<Operator> supportedOperators,
                                           JiraDataType supportedType)

SimpleFieldSearchConstantsWithEmpty

public SimpleFieldSearchConstantsWithEmpty(java.lang.String indexField,
                                           java.lang.String jqlClauseName,
                                           java.lang.String urlParameter,
                                           java.lang.String searcherId,
                                           java.lang.String emptySelectFlag,
                                           java.lang.String emptyIndexValue,
                                           java.lang.String fieldId,
                                           java.util.Set<Operator> supportedOperators,
                                           JiraDataType supportedType)
Method Detail

getIndexField

public java.lang.String getIndexField()
Specified by:
getIndexField in interface ClauseInformation
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

public ClauseNames getJqlClauseNames()
Specified by:
getJqlClauseNames in interface ClauseInformation
Returns:
the allowed JQL clause names.

getUrlParameter

public java.lang.String getUrlParameter()

getSearcherId

public java.lang.String getSearcherId()

getSupportedOperators

public java.util.Set<Operator> getSupportedOperators()
Description copied from interface: ClauseInformation
Provides a set of the supported Operator's that this custom field searcher can handle for its searching.

Specified by:
getSupportedOperators in interface ClauseInformation
Returns:
a set of supported operators.

getDataType

public JiraDataType getDataType()
Description copied from interface: ClauseInformation
Provides the JiraDataType 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 interface ClauseInformation
Returns:
the JiraDataType that this clause can handle.
See Also:
JiraDataTypes

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getEmptySelectFlag

public java.lang.String getEmptySelectFlag()

getEmptyIndexValue

public java.lang.String getEmptyIndexValue()

getFieldId

public java.lang.String getFieldId()
Specified by:
getFieldId in interface ClauseInformation
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.


Copyright © 2002-2011 Atlassian. All Rights Reserved.