com.atlassian.jira.jql.query
Class HistoryPredicateQueryFactory

java.lang.Object
  extended by com.atlassian.jira.jql.query.HistoryPredicateQueryFactory

public class HistoryPredicateQueryFactory
extends Object

Since:
v4.4

Constructor Summary
HistoryPredicateQueryFactory(PredicateOperandResolver predicateOperandResolver, JqlDateSupport jqlDateSupport, ChangeHistoryFieldIdResolver changeHistoryFieldIdResolver)
          Deprecated. Use HistoryPredicateQueryFactory(PredicateOperandResolver, JqlDateSupport, UserResolver, ChangeHistoryFieldIdResolver) instead. Since v6.0.
HistoryPredicateQueryFactory(PredicateOperandResolver predicateOperandResolver, JqlDateSupport jqlDateSupport, UserResolver userResolver, ChangeHistoryFieldIdResolver changeHistoryFieldIdResolver)
           
 
Method Summary
 void makeExclusiveQueryBasedOnDates(org.apache.lucene.search.BooleanQuery bq, String field, Date fromDate, Date toDate, boolean isChangedSearch)
           
 void makeInclusiveQueryBasedOnDates(org.apache.lucene.search.BooleanQuery bq, String field, Date fromDate, Date toDate, boolean isChangedSearch)
           
 org.apache.lucene.search.BooleanQuery makePredicateQuery(com.atlassian.crowd.embedded.api.User searcher, String field, HistoryPredicate historyPredicate, boolean isChangedSearch)
           
 void makeTermQueryImpl(org.apache.lucene.search.BooleanQuery bq, String field, Date fromDate, Date toDate, boolean inclusiveSearch, boolean isChangedSearch)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistoryPredicateQueryFactory

@Deprecated
public HistoryPredicateQueryFactory(PredicateOperandResolver predicateOperandResolver,
                                               JqlDateSupport jqlDateSupport,
                                               ChangeHistoryFieldIdResolver changeHistoryFieldIdResolver)
Deprecated. Use HistoryPredicateQueryFactory(PredicateOperandResolver, JqlDateSupport, UserResolver, ChangeHistoryFieldIdResolver) instead. Since v6.0.


HistoryPredicateQueryFactory

public HistoryPredicateQueryFactory(PredicateOperandResolver predicateOperandResolver,
                                    JqlDateSupport jqlDateSupport,
                                    UserResolver userResolver,
                                    ChangeHistoryFieldIdResolver changeHistoryFieldIdResolver)
Parameters:
predicateOperandResolver - resolves HistoryPredicate values
jqlDateSupport - parses SQL dates
userResolver - resolves users to their keys
changeHistoryFieldIdResolver - resolves historic values to their corresponding IDs
Method Detail

makePredicateQuery

public org.apache.lucene.search.BooleanQuery makePredicateQuery(com.atlassian.crowd.embedded.api.User searcher,
                                                                String field,
                                                                HistoryPredicate historyPredicate,
                                                                boolean isChangedSearch)

makeExclusiveQueryBasedOnDates

public void makeExclusiveQueryBasedOnDates(org.apache.lucene.search.BooleanQuery bq,
                                           String field,
                                           Date fromDate,
                                           Date toDate,
                                           boolean isChangedSearch)

makeInclusiveQueryBasedOnDates

public void makeInclusiveQueryBasedOnDates(org.apache.lucene.search.BooleanQuery bq,
                                           String field,
                                           Date fromDate,
                                           Date toDate,
                                           boolean isChangedSearch)

makeTermQueryImpl

public void makeTermQueryImpl(org.apache.lucene.search.BooleanQuery bq,
                              String field,
                              Date fromDate,
                              Date toDate,
                              boolean inclusiveSearch,
                              boolean isChangedSearch)


Copyright © 2002-2014 Atlassian. All Rights Reserved.