com.atlassian.jira.issue.search.parameters.lucene
Class DateParameter

java.lang.Object
  extended bycom.atlassian.jira.issue.search.parameters.AbstractSearchParameter
      extended bycom.atlassian.jira.issue.search.parameters.LuceneParameter
          extended bycom.atlassian.jira.issue.search.parameters.lucene.SingleFieldSingleValueLuceneParameter
              extended bycom.atlassian.jira.issue.search.parameters.lucene.DateParameter
All Implemented Interfaces:
SearchParameter

public class DateParameter
extends SingleFieldSingleValueLuceneParameter


Field Summary
static java.lang.String DATE_SUFFIX_AFTER
           
static java.lang.String DATE_SUFFIX_BEFORE
           
 
Fields inherited from class com.atlassian.jira.issue.search.parameters.AbstractSearchParameter
log
 
Constructor Summary
DateParameter()
           
DateParameter(java.lang.String name, org.ofbiz.core.entity.EntityOperator operator, java.util.Date date)
           
 
Method Summary
 java.lang.String getName()
           
 org.ofbiz.core.entity.EntityOperator getOperator()
           
 org.apache.lucene.search.Query getQuery(org.ofbiz.core.entity.GenericValue project, com.opensymphony.user.User searcher)
           
protected  java.lang.String getQueryStringPrefix()
          Note that implementations of this method should ensure that the values that they return are URLEncoded, perhaps using the URLEncoder.encode(String) method.
 electric.xml.Element getXml()
          Return an XML representation of this search parameter
 boolean isValid()
           
 void setName(java.lang.String name)
           
 void setOperator(org.ofbiz.core.entity.EntityOperator operator)
           
 void setXml(electric.xml.Element el)
          Initialise this search parameter using an XML element.
 
Methods inherited from class com.atlassian.jira.issue.search.parameters.lucene.SingleFieldSingleValueLuceneParameter
getXmlElementName
 
Methods inherited from class com.atlassian.jira.issue.search.parameters.AbstractSearchParameter
addValue, clearValues, equals, getQueryString, getValues, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DATE_SUFFIX_AFTER

public static final java.lang.String DATE_SUFFIX_AFTER
See Also:
Constant Field Values

DATE_SUFFIX_BEFORE

public static final java.lang.String DATE_SUFFIX_BEFORE
See Also:
Constant Field Values
Constructor Detail

DateParameter

public DateParameter()

DateParameter

public DateParameter(java.lang.String name,
                     org.ofbiz.core.entity.EntityOperator operator,
                     java.util.Date date)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface SearchParameter
Overrides:
getName in class AbstractSearchParameter

setName

public void setName(java.lang.String name)
Specified by:
setName in interface SearchParameter
Overrides:
setName in class AbstractSearchParameter

getQuery

public org.apache.lucene.search.Query getQuery(org.ofbiz.core.entity.GenericValue project,
                                               com.opensymphony.user.User searcher)
                                        throws org.apache.lucene.queryParser.ParseException
Overrides:
getQuery in class SingleFieldSingleValueLuceneParameter
Throws:
org.apache.lucene.queryParser.ParseException

getXml

public electric.xml.Element getXml()
Description copied from interface: SearchParameter
Return an XML representation of this search parameter

Specified by:
getXml in interface SearchParameter
Overrides:
getXml in class SingleFieldSingleValueLuceneParameter

setXml

public void setXml(electric.xml.Element el)
Description copied from interface: SearchParameter
Initialise this search parameter using an XML element. Usual process is: SearchParameter param = new MySearchParameter(); param.setXml(element);

Specified by:
setXml in interface SearchParameter
Overrides:
setXml in class AbstractSearchParameter

getOperator

public org.ofbiz.core.entity.EntityOperator getOperator()

setOperator

public void setOperator(org.ofbiz.core.entity.EntityOperator operator)

isValid

public boolean isValid()
Specified by:
isValid in interface SearchParameter
Overrides:
isValid in class SingleFieldSingleValueLuceneParameter

getQueryStringPrefix

protected java.lang.String getQueryStringPrefix()
Description copied from class: AbstractSearchParameter
Note that implementations of this method should ensure that the values that they return are URLEncoded, perhaps using the URLEncoder.encode(String) method.

Overrides:
getQueryStringPrefix in class AbstractSearchParameter
Returns:


Copyright © 2002-2005 Atlassian. All Rights Reserved.