public interface

LiteralSanitiser

com.atlassian.jira.jql.permission.LiteralSanitiser
Known Indirect Subclasses

Class Overview

Defines how to sanitise a list of query literals.

Summary

Nested Classes
class LiteralSanitiser.Result Dictates the result of sanitising a list of QueryLiterals. 
Public Methods
LiteralSanitiser.Result sanitiseLiterals(List<QueryLiteral> literals)
Note: in general, it is possible that a literal can expand out into multiple id values.

Public Methods

public LiteralSanitiser.Result sanitiseLiterals (List<QueryLiteral> literals)

Note: in general, it is possible that a literal can expand out into multiple id values. The strategy for handling these should be that if ALL values are sanitised, then modification should occur, but if at least one is okay then we should keep the original literal.

Parameters
literals the literals to sanitise; must not be null.
Returns
  • the result object, which states if there was any modification, and also contains the resultant literals. Never null.