@NonInjectableComponent public class IssueLiteralSanitiser extends Object implements LiteralSanitiser
QueryLiteral
s.
The strategy is to sanitise only those issues which both exist and the user does not have permission to browse.
The sanitised form of the operand replaces the key representation with the id representation.LiteralSanitiser.Result
Constructor and Description |
---|
IssueLiteralSanitiser(PermissionManager permissionManager,
JqlIssueSupport jqlIssueSupport,
ApplicationUser user) |
Modifier and Type | Method and Description |
---|---|
LiteralSanitiser.Result |
sanitiseLiterals(List<QueryLiteral> literals)
Issue keys are not guaranteed to be 1-1, so this method might actually return more QueryLiterals than what we started with.
|
public IssueLiteralSanitiser(PermissionManager permissionManager, JqlIssueSupport jqlIssueSupport, ApplicationUser user)
public LiteralSanitiser.Result sanitiseLiterals(List<QueryLiteral> literals)
sanitiseLiterals
in interface LiteralSanitiser
literals
- the literals to sanitise; must not be null.Copyright © 2002-2022 Atlassian. All Rights Reserved.