public class AllTextValidator extends Object implements ClauseValidator
CommentValidator
.
"All text" clause only supports the LIKE operator - NOT LIKE is too hard due to field visibility calculations, and we couldn't decide whether or not aggregate results should be ORed or ANDed together.
All free text fields ultimately validate in the same way, using FreeTextFieldValidator
, so we only do one
validation as opposed to going through each field and validating.
Constructor and Description |
---|
AllTextValidator(CommentValidator delegate) |
Modifier and Type | Method and Description |
---|---|
MessageSet |
validate(ApplicationUser searcher,
TerminalClause terminalClause)
Validates a clause and adds human readable i18n'ed messages if there is a problem.
|
public AllTextValidator(CommentValidator delegate)
public MessageSet validate(ApplicationUser searcher, TerminalClause terminalClause)
ClauseValidator
validate
in interface ClauseValidator
searcher
- the user who is executing the search.terminalClause
- the clause to validate.Copyright © 2002-2015 Atlassian. All Rights Reserved.