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)
Use this constructor if you need to override security.
@Deprecated QueryCreationContextImpl(User user)
This constructor is deprecated. since 6.1 use QueryCreationContextImpl(com.atlassian.jira.user.ApplicationUser) instead
@Deprecated QueryCreationContextImpl(User user, boolean securityOverriden)
This constructor is deprecated. since 6.1 use QueryCreationContextImpl(com.atlassian.jira.user.ApplicationUser, boolean) instead
Public Methods
boolean equals(Object o)
ApplicationUser getApplicationUser()
Get the User.
User getQueryUser()
Get the User.
User 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)

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

@Deprecated public QueryCreationContextImpl (User user)

This constructor is deprecated.
since 6.1 use QueryCreationContextImpl(com.atlassian.jira.user.ApplicationUser) instead

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

Parameters
user the user performing the search

@Deprecated public QueryCreationContextImpl (User user, boolean securityOverriden)

This constructor is deprecated.
since 6.1 use QueryCreationContextImpl(com.atlassian.jira.user.ApplicationUser, boolean) instead

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.

public User getQueryUser ()

Get the User.

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

public User getUser ()

Get the User.

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

public int hashCode ()

public boolean isSecurityOverriden ()