public class ProjectClauseValueSanitiser extends Object implements ClauseSanitiser
Constructor and Description |
---|
ProjectClauseValueSanitiser(PermissionManager permissionManager,
JqlOperandResolver jqlOperandResolver,
NameResolver<Project> projectResolver) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
Clause |
sanitise(ApplicationUser user,
TerminalClause clause)
Important note: we are making a big assumption here that the
ProjectClauseValueSanitiser.ProjectOperandSanitisingVisitor
will always return the same kind of operand back after sanitising. |
public ProjectClauseValueSanitiser(PermissionManager permissionManager, JqlOperandResolver jqlOperandResolver, NameResolver<Project> projectResolver)
public Clause sanitise(ApplicationUser user, TerminalClause clause)
ProjectClauseValueSanitiser.ProjectOperandSanitisingVisitor
will always return the same kind of operand back after sanitising. This is because project literals can never
expand to more than one index value for a named literal. Therefore, the multiplicity of the operand does not
change after sanitising. Because of this, we blindly reuse the original operator from the input clause.
If this assumption ever changes, we will need to revisit this code.
sanitise
in interface ClauseSanitiser
clause
- the clause to sanitiseuser
- the user performing the searchCopyright © 2002-2024 Atlassian. All Rights Reserved.