public class SearchQuery extends Object
QueryApplicationUserOverrideSecurityQuery to further restrict results by anding with an additional Lucene query| Modifier and Type | Method and Description |
|---|---|
static SearchQuery |
create(Query query,
ApplicationUser searcher)
|
boolean |
equals(Object o) |
org.apache.lucene.search.Query |
getLuceneQuery() |
Query |
getQuery() |
ApplicationUser |
getUser() |
int |
hashCode() |
boolean |
isOverrideSecurity() |
SearchQuery |
luceneQuery(org.apache.lucene.search.Query luceneQuery)
Additional Lucene query that will be anded with
query to further restrict search results. |
SearchQuery |
overrideSecurity(boolean overrideSecurity)
Decides if search results should be restricted to those visible to
user, or unrestricted. |
public static SearchQuery create(Query query, ApplicationUser searcher)
query - JQL query to define search resultssearcher - ApplicationUser that will be used in search. This has two purposes:
overrideSecurity is not set, search results will be restricted to those the user is permitted to seeQueryCreationContextoverrideSecurity(boolean) and luceneQuery(org.apache.lucene.search.Query).public SearchQuery overrideSecurity(boolean overrideSecurity)
user, or unrestricted.
This will be available to JQL functions in QueryCreationContext.overrideSecurity - true if security restrictions should be ignoredpublic SearchQuery luceneQuery(org.apache.lucene.search.Query luceneQuery)
query to further restrict search results.luceneQuery - public Query getQuery()
public org.apache.lucene.search.Query getLuceneQuery()
@Nullable public ApplicationUser getUser()
public boolean isOverrideSecurity()
Copyright © 2002-2021 Atlassian. All Rights Reserved.