Package com.atlassian.jira.jql.resolver
Class IssueSecurityLevelResolver
java.lang.Object
com.atlassian.jira.jql.resolver.IssueSecurityLevelResolver
Resolves Issue Security Levels for the specified user.
- Since:
- v4.0
-
Constructor Summary
ConstructorsConstructorDescriptionIssueSecurityLevelResolver(IssueSecurityLevelManager issueSecurityLevelManager) -
Method Summary
Modifier and TypeMethodDescriptiongetAllSecurityLevels(ApplicationUser searcher) Returns the issue level objects that the passed user can see.getIssueSecurityLevels(ApplicationUser searcher, QueryLiteral rawValue) ResolvesGenericValues representing Issue Security Levels based on theQueryLiteralprovided.getIssueSecurityLevels(ApplicationUser searcher, List<QueryLiteral> rawValues) ResolvesGenericValues representing Issue Security Levels based on theQueryLiterals provided.getIssueSecurityLevelsOverrideSecurity(List<QueryLiteral> rawValues) ResolvesGenericValues representing Issue Security Levels based on theQueryLiterals provided.
-
Constructor Details
-
IssueSecurityLevelResolver
-
-
Method Details
-
getAllSecurityLevels
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(ApplicationUser searcher, QueryLiteral rawValue) ResolvesGenericValues representing Issue Security Levels based on theQueryLiteralprovided. 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(ApplicationUser searcher, List<QueryLiteral> rawValues) ResolvesGenericValues representing Issue Security Levels based on theQueryLiterals 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) ResolvesGenericValues representing Issue Security Levels based on theQueryLiterals 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.
-