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()
QueryCreationContext
getApplicationUser
in interface QueryCreationContext
public ApplicationUser getUser()
QueryCreationContext
getUser
in interface QueryCreationContext
public ApplicationUser getQueryUser()
QueryCreationContext
getQueryUser
in interface QueryCreationContext
public boolean isSecurityOverriden()
isSecurityOverriden
in interface QueryCreationContext
QueryCreationContext.getQueryUser()
will be ignored. If false, the user will be used to do permission checks.@Nonnull public Set<String> getDeterminedProjects()
getDeterminedProjects
in interface QueryCreationContext
Copyright © 2002-2015 Atlassian. All Rights Reserved.