public abstract class EntityPropertyClauseValidator extends Object implements ClauseValidator
| Constructor and Description |
|---|
EntityPropertyClauseValidator(String propertyType) |
| Modifier and Type | Method and Description |
|---|---|
protected I18nHelper |
getI18n(ApplicationUser user) |
static boolean |
isSupportedOperator(Operator operator) |
static Collection<Operator> |
supportedOperators() |
MessageSet |
validate(ApplicationUser searcher,
TerminalClause terminalClause)
Validates a clause and adds human readable i18n'ed messages if there is a problem.
|
public EntityPropertyClauseValidator(String propertyType)
@Nonnull public MessageSet validate(ApplicationUser searcher, @Nonnull TerminalClause terminalClause)
ClauseValidatorvalidate in interface ClauseValidatorsearcher - the user who is executing the search.terminalClause - the clause to validate.protected I18nHelper getI18n(ApplicationUser user)
public static boolean isSupportedOperator(Operator operator)
public static Collection<Operator> supportedOperators()
Copyright © 2002-2019 Atlassian. All Rights Reserved.