com.atlassian.jira.jql.resolver
Class IssueSecurityLevelResolver

java.lang.Object
  extended by com.atlassian.jira.jql.resolver.IssueSecurityLevelResolver

@InjectableComponent
public class IssueSecurityLevelResolver
extends Object

Resolves Issue Security Levels for the specified user.

Since:
v4.0

Constructor Summary
IssueSecurityLevelResolver(IssueSecurityLevelManager issueSecurityLevelManager)
           
 
Method Summary
 List<IssueSecurityLevel> getAllSecurityLevels(com.atlassian.crowd.embedded.api.User searcher)
          Returns the issue level objects that the passed user can see.
 List<IssueSecurityLevel> getIssueSecurityLevels(com.atlassian.crowd.embedded.api.User searcher, List<QueryLiteral> rawValues)
          Resolves GenericValues representing Issue Security Levels based on the QueryLiterals provided.
 List<IssueSecurityLevel> getIssueSecurityLevels(com.atlassian.crowd.embedded.api.User searcher, QueryLiteral rawValue)
          Resolves GenericValues representing Issue Security Levels based on the QueryLiteral provided.
 List<IssueSecurityLevel> getIssueSecurityLevelsOverrideSecurity(List<QueryLiteral> rawValues)
          Resolves GenericValues representing Issue Security Levels based on the QueryLiterals provided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueSecurityLevelResolver

public IssueSecurityLevelResolver(IssueSecurityLevelManager issueSecurityLevelManager)
Method Detail

getAllSecurityLevels

public List<IssueSecurityLevel> getAllSecurityLevels(com.atlassian.crowd.embedded.api.User searcher)
Returns the issue level objects that the passed user can see.

Parameters:
searcher - all the issues levels that the passed user can see.
Returns:
a list of all the issue levels that the passed user can see. The list returned may be edited by the caller.

getIssueSecurityLevels

public List<IssueSecurityLevel> getIssueSecurityLevels(com.atlassian.crowd.embedded.api.User searcher,
                                                       QueryLiteral rawValue)
Resolves GenericValues representing Issue Security Levels based on the QueryLiteral provided. Will only return security levels the specified user can see. Note: a null value in the returned list represents the "Empty" security level

Parameters:
searcher - the user performing the search.
rawValue - the raw search input
Returns:
the collection of security levels; never null.

getIssueSecurityLevels

public List<IssueSecurityLevel> getIssueSecurityLevels(com.atlassian.crowd.embedded.api.User searcher,
                                                       List<QueryLiteral> rawValues)
Resolves GenericValues representing Issue Security Levels based on the QueryLiterals provided. Will only return security levels the specified user can see. Note: a null value in the returned list represents the "Empty" security level

Parameters:
searcher - the user performing the search.
rawValues - the raw search inputs
Returns:
the collection of security levels; never null.

getIssueSecurityLevelsOverrideSecurity

public List<IssueSecurityLevel> getIssueSecurityLevelsOverrideSecurity(List<QueryLiteral> rawValues)
Resolves GenericValues representing Issue Security Levels based on the QueryLiterals provided. Permissions are ignored. Note: a null value in the returned list represents the "Empty" security level

Parameters:
rawValues - the raw search inputs
Returns:
the collection of security levels; never null.


Copyright © 2002-2014 Atlassian. All Rights Reserved.