com.atlassian.jira.issue.search.parameters.lucene
Class ProjectParameter
java.lang.Object
com.atlassian.jira.issue.search.parameters.AbstractSearchParameter
com.atlassian.jira.issue.search.parameters.LuceneParameter
com.atlassian.jira.issue.search.parameters.lucene.SingleFieldSingleValueLuceneParameter
com.atlassian.jira.issue.search.parameters.lucene.ProjectParameter
- All Implemented Interfaces:
- CommentParameter, IssueCommentParameter, IssueParameter, SearchParameter
- public class ProjectParameter
- extends SingleFieldSingleValueLuceneParameter
- implements IssueCommentParameter
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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ProjectParameter
public ProjectParameter()
ProjectParameter
public ProjectParameter(java.lang.Long pId)
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.