@NonInjectableComponent public class ProjectLiteralSanitiser extends Object implements LiteralSanitiser
QueryLiteral
s.
The strategy is to sanitise only those projects which both exist and the user does not have permission to browse.
The sanitised form of the operand replaces the name or key form with the id representation.LiteralSanitiser.Result
Constructor and Description |
---|
ProjectLiteralSanitiser(NameResolver<Project> projectResolver,
PermissionManager permissionManager,
ApplicationUser user) |
Modifier and Type | Method and Description |
---|---|
LiteralSanitiser.Result |
sanitiseLiterals(List<QueryLiteral> literals)
We make a big assumption here that a single project literal will never expand out into more than one project id,
because of the rules around project names and resolving.
|
public ProjectLiteralSanitiser(NameResolver<Project> projectResolver, PermissionManager permissionManager, ApplicationUser user)
public LiteralSanitiser.Result sanitiseLiterals(List<QueryLiteral> literals)
sanitiseLiterals
in interface LiteralSanitiser
literals
- the literals to sanitise; must not be null.Copyright © 2002-2023 Atlassian. All Rights Reserved.