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

java.lang.Object
  extended by com.atlassian.jira.issue.search.parameters.AbstractSearchParameter
      extended by com.atlassian.jira.issue.search.parameters.AbstractLuceneParameter
          extended by com.atlassian.jira.issue.search.parameters.lucene.SingleFieldMultiValueLuceneParameter
              extended by com.atlassian.jira.issue.search.parameters.lucene.LongListParameter
                  extended by com.atlassian.jira.issue.search.parameters.lucene.AbstractVersionParameter
                      extended by com.atlassian.jira.issue.search.parameters.lucene.FixForParameter
All Implemented Interfaces:
LuceneParameter, SearchParameter
Direct Known Subclasses:
FixForParameter.NoVersion

public class FixForParameter
extends AbstractVersionParameter

Limits search to issues with certain fix-for version(s).


Nested Class Summary
static class FixForParameter.NoVersion
          Handy class for specifying no version set.
 
Field Summary
 
Fields inherited from class com.atlassian.jira.issue.search.parameters.lucene.AbstractVersionParameter
ANY_RELEASED_VERSION, ANY_UNRELEASED_VERSION, ANY_VERSION, NO_VERSION
 
Constructor Summary
FixForParameter()
          Ninja constructor! Invoked by reflection in SearchRequest.init(electric.xml.Document)
FixForParameter(Collection fixVersions)
          Instantiate with a list of fix-for Versions, GenericValues, or Long ids.
FixForParameter(Version fixForVersion)
           
 
Method Summary
protected  String getQueryStringPrefix()
          Query parameter name, suitable for inclusion in URL.
 
Methods inherited from class com.atlassian.jira.issue.search.parameters.lucene.AbstractVersionParameter
getQuery, isValid, isValidVersionId
 
Methods inherited from class com.atlassian.jira.issue.search.parameters.lucene.LongListParameter
getXml, setXml
 
Methods inherited from class com.atlassian.jira.issue.search.parameters.lucene.SingleFieldMultiValueLuceneParameter
constructQueryFromValues, equals, getOccurance, hashCode, isAndQuery, setAndQuery
 
Methods inherited from class com.atlassian.jira.issue.search.parameters.AbstractSearchParameter
addValue, clearValues, getName, getQueryString, getValues, setName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.issue.search.SearchParameter
addValue, getName, getQueryString, getValues, setName
 

Constructor Detail

FixForParameter

public FixForParameter()
Ninja constructor! Invoked by reflection in SearchRequest.init(electric.xml.Document)


FixForParameter

public FixForParameter(Collection fixVersions)
Instantiate with a list of fix-for Versions, GenericValues, or Long ids.


FixForParameter

public FixForParameter(Version fixForVersion)
Method Detail

getQueryStringPrefix

protected String getQueryStringPrefix()
Description copied from class: AbstractSearchParameter
Query parameter name, suitable for inclusion in URL. 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:
nothing, always throws UnsupportedOperationException


Copyright © 2002-2008 Atlassian. All Rights Reserved.