public class HistoryFieldValueValidator extends Object
Modifier and Type | Field and Description |
---|---|
static String |
MSG_BAD_NAME_FROM_FUNCTION |
Constructor and Description |
---|
HistoryFieldValueValidator(SearchHandlerManager searchHandlerManager,
JqlChangeItemMapping jqlChangeItemMapping,
JqlOperandResolver operandResolver,
ChangeHistoryFieldConfigurationManager configurationManager,
SearchProviderFactory searchProviderFactory,
I18nHelper.BeanFactory i18nFactory,
UserKeyService userKeyService) |
Modifier and Type | Method and Description |
---|---|
MessageSet |
validateValues(ApplicationUser searcher,
String fieldName,
List<QueryLiteral> rawValues)
Validate a set of values supplied within a JQL query.
|
public static final String MSG_BAD_NAME_FROM_FUNCTION
public HistoryFieldValueValidator(SearchHandlerManager searchHandlerManager, JqlChangeItemMapping jqlChangeItemMapping, JqlOperandResolver operandResolver, ChangeHistoryFieldConfigurationManager configurationManager, SearchProviderFactory searchProviderFactory, I18nHelper.BeanFactory i18nFactory, UserKeyService userKeyService)
@Nonnull public MessageSet validateValues(ApplicationUser searcher, String fieldName, List<QueryLiteral> rawValues)
For history clauses, such as assignee WAS fred
or status CHANGED FROM Open TO Resolved BY fred
,
values are permitted if either they are currently valid or they exist anywhere in the change history.
searcher
- the user performing the searchfieldName
- the name of the field to be validated, such as "assignee" or "status"rawValues
- the values supplied for validationCopyright © 2002-2024 Atlassian. All Rights Reserved.