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

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.ProjectParameter
All Implemented Interfaces:
CommentParameter, IssueCommentParameter, IssueParameter, SearchParameter

public class ProjectParameter
extends SingleFieldSingleValueLuceneParameter
implements IssueCommentParameter


Field Summary
 
Fields inherited from class com.atlassian.jira.issue.search.parameters.AbstractSearchParameter
log
 
Constructor Summary
ProjectParameter()
           
ProjectParameter(java.lang.Long pId)
           
 
Method Summary
 org.apache.lucene.search.Query getCommentQuery(org.ofbiz.core.entity.GenericValue project, com.opensymphony.user.User searcher)
           
 org.apache.lucene.search.Query getIssueQuery(org.ofbiz.core.entity.GenericValue project, com.opensymphony.user.User searcher)
           
 org.ofbiz.core.entity.GenericValue getProject()
           
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.
 boolean isValid()
           
 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
getQuery, getXml, getXmlElementName
 
Methods inherited from class com.atlassian.jira.issue.search.parameters.AbstractSearchParameter
addValue, clearValues, equals, getName, getQueryString, getValues, hashCode, setName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProjectParameter

public ProjectParameter()

ProjectParameter

public ProjectParameter(java.lang.Long pId)
Method Detail

getIssueQuery

public org.apache.lucene.search.Query getIssueQuery(org.ofbiz.core.entity.GenericValue project,
                                                    com.opensymphony.user.User searcher)
                                             throws org.apache.lucene.queryParser.ParseException
Specified by:
getIssueQuery in interface IssueParameter
Throws:
org.apache.lucene.queryParser.ParseException

getCommentQuery

public org.apache.lucene.search.Query getCommentQuery(org.ofbiz.core.entity.GenericValue project,
                                                      com.opensymphony.user.User searcher)
                                               throws org.apache.lucene.queryParser.ParseException
Specified by:
getCommentQuery in interface CommentParameter
Throws:
org.apache.lucene.queryParser.ParseException

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

isValid

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

getProject

public org.ofbiz.core.entity.GenericValue getProject()
                                              throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

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.