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) |
QueryCreationContextImpl(com.atlassian.crowd.embedded.api.User user)
Deprecated.
since 6.1 use
QueryCreationContextImpl(com.atlassian.jira.user.ApplicationUser) instead |
QueryCreationContextImpl(com.atlassian.crowd.embedded.api.User user,
boolean securityOverriden)
Deprecated.
since 6.1 use
QueryCreationContextImpl(com.atlassian.jira.user.ApplicationUser, boolean) instead |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ApplicationUser |
getApplicationUser()
Get the User.
|
Set<String> |
getDeterminedProjects() |
com.atlassian.crowd.embedded.api.User |
getQueryUser()
Get the User.
|
com.atlassian.crowd.embedded.api.User |
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 otherwise@Deprecated public QueryCreationContextImpl(com.atlassian.crowd.embedded.api.User user)
QueryCreationContextImpl(com.atlassian.jira.user.ApplicationUser)
insteaduser
- the user performing the search@Deprecated public QueryCreationContextImpl(com.atlassian.crowd.embedded.api.User user, boolean securityOverriden)
QueryCreationContextImpl(com.atlassian.jira.user.ApplicationUser, boolean)
insteaduser
- the user performing the searchsecurityOverriden
- true if you want to override security; false otherwisepublic ApplicationUser getApplicationUser()
QueryCreationContext
getApplicationUser
in interface QueryCreationContext
public com.atlassian.crowd.embedded.api.User getUser()
QueryCreationContext
getUser
in interface QueryCreationContext
public com.atlassian.crowd.embedded.api.User 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.