@PublicApi
public interface QueryCreationContext
The user specified by getUser()
represents the user that is performing the search, and thus the user to use
when performing security checks in query factories, JQL functions and resolving fields/handlers from clause names.
These security checks will be ignored when the isSecurityOverriden()
is set to true
. This is
necessary when creating queries in the context of administration searches, where you need to ensure that all the
results in the system are returned, regardless of who is performing the search.
The determined projects specified by getDeterminedProjects()
represent the projects which were impliedfa
Modifier and Type | Method and Description |
---|---|
ApplicationUser |
getApplicationUser()
Get the User.
|
Set<String> |
getDeterminedProjects() |
ApplicationUser |
getQueryUser()
Deprecated.
Use
getUser() instead. Since v5.0. |
ApplicationUser |
getUser()
Deprecated.
since 6.1 use
getApplicationUser() instead |
boolean |
isSecurityOverriden() |
@Deprecated ApplicationUser getUser()
getApplicationUser()
insteadApplicationUser getApplicationUser()
ApplicationUser getQueryUser()
getUser()
instead. Since v5.0.boolean isSecurityOverriden()
getQueryUser()
will be ignored. If false, the user will be used to do permission checks.Copyright © 2002-2018 Atlassian. All Rights Reserved.