@InjectableComponent public class DefaultOrderByValidator extends Object implements OrderByValidator
Constructor and Description |
---|
DefaultOrderByValidator(SearchHandlerManager searchHandlerManager,
FieldManager fieldManager,
I18nHelper.BeanFactory iBeanFactory,
JqlAliasManager jqlAliasManager) |
Modifier and Type | Method and Description |
---|---|
MessageSet |
validate(ApplicationUser searcher,
OrderBy orderBy)
Will add messages if there is a portion of the order by that contains a non-orderable jql clause name or
if there are any duplicates or if the user is trying to order by a field that they can't see.
|
public DefaultOrderByValidator(SearchHandlerManager searchHandlerManager, FieldManager fieldManager, I18nHelper.BeanFactory iBeanFactory, JqlAliasManager jqlAliasManager)
public MessageSet validate(ApplicationUser searcher, OrderBy orderBy)
OrderByValidator
validate
in interface OrderByValidator
searcher
- the user performing the validation.orderBy
- the OrderBy containing the SearchSorts.Copyright © 2002-2017 Atlassian. All Rights Reserved.