public class QueryCreationContextImpl extends Object implements QueryCreationContext
QueryCreationContext.| Constructor and Description |
|---|
QueryCreationContextImpl(ApplicationUser user)
Use this constructor unless you know you need to override security.
|
QueryCreationContextImpl(ApplicationUser user,
boolean securityOverriden) |
QueryCreationContextImpl(ApplicationUser user,
boolean securityOverriden,
Set<String> determinedProjects)
Use this constructor if you need to override security.
|
QueryCreationContextImpl(QueryCreationContext queryCreationContext,
Set<String> determinedProjects) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
ApplicationUser |
getApplicationUser()
Get the User.
|
Set<String> |
getDeterminedProjects() |
ApplicationUser |
getQueryUser()
Get the User.
|
ApplicationUser |
getUser()
Get the User.
|
int |
hashCode() |
boolean |
isSecurityOverriden() |
public QueryCreationContextImpl(ApplicationUser user)
user - the user performing the searchpublic QueryCreationContextImpl(ApplicationUser user, boolean securityOverriden)
public QueryCreationContextImpl(QueryCreationContext queryCreationContext, Set<String> determinedProjects)
public QueryCreationContextImpl(ApplicationUser user, boolean securityOverriden, Set<String> determinedProjects)
user - the user performing the searchsecurityOverriden - true if you want to override security; false otherwisepublic ApplicationUser getApplicationUser()
QueryCreationContextgetApplicationUser in interface QueryCreationContextpublic ApplicationUser getUser()
QueryCreationContextgetUser in interface QueryCreationContextpublic ApplicationUser getQueryUser()
QueryCreationContextgetQueryUser in interface QueryCreationContextpublic boolean isSecurityOverriden()
isSecurityOverriden in interface QueryCreationContextQueryCreationContext.getQueryUser() will be ignored. If false, the user will be used to do permission checks.@Nonnull public Set<String> getDeterminedProjects()
getDeterminedProjects in interface QueryCreationContextCopyright © 2002-2018 Atlassian. All Rights Reserved.