public class

QueryCreationContextImpl

extends Object
implements QueryCreationContext
java.lang.Object
   ↳ com.atlassian.jira.jql.query.QueryCreationContextImpl

Class Overview

Default implementation of QueryCreationContext.

Summary

Public Constructors
QueryCreationContextImpl(ApplicationUser user)
Use this constructor unless you know you need to override security.
QueryCreationContextImpl(ApplicationUser user, boolean securityOverriden)
QueryCreationContextImpl(QueryCreationContext queryCreationContext, Set<String> determinedProjects)
QueryCreationContextImpl(ApplicationUser user, boolean securityOverriden, Set<String> determinedProjects)
Use this constructor if you need to override security.
Public Methods
boolean equals(Object o)
ApplicationUser getApplicationUser()
Get the User.
@Nonnull Set<String> getDeterminedProjects()
ApplicationUser getQueryUser()
Get the User.
ApplicationUser getUser()
Get the User.
int hashCode()
boolean isSecurityOverriden()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.jql.query.QueryCreationContext

Public Constructors

public QueryCreationContextImpl (ApplicationUser user)

Use this constructor unless you know you need to override security.

Parameters
user the user performing the search

public QueryCreationContextImpl (ApplicationUser user, boolean securityOverriden)

public QueryCreationContextImpl (QueryCreationContext queryCreationContext, Set<String> determinedProjects)

public QueryCreationContextImpl (ApplicationUser user, boolean securityOverriden, Set<String> determinedProjects)

Use this constructor if you need to override security.

Parameters
user the user performing the search
securityOverriden true if you want to override security; false otherwise

Public Methods

public boolean equals (Object o)

public ApplicationUser getApplicationUser ()

Get the User.

Returns
  • the user in this context; null signifies the anonymous user.

@Nonnull public Set<String> getDeterminedProjects ()

public ApplicationUser getQueryUser ()

Get the User.

Returns
  • the user in this context; null signifies the anonymous user.

public ApplicationUser getUser ()

Get the User.

Returns
  • the user in this context; null signifies the anonymous user.

public int hashCode ()

public boolean isSecurityOverriden ()