@InjectableComponent public class DefaultOrderByValidator extends Object implements OrderByValidator
Constructor and Description |
---|
DefaultOrderByValidator(SearchHandlerManager searchHandlerManager,
FieldManager fieldManager,
I18nHelper.BeanFactory iBeanFactory) |
Modifier and Type | Method and Description |
---|---|
MessageSet |
validate(com.atlassian.crowd.embedded.api.User 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)
public MessageSet validate(com.atlassian.crowd.embedded.api.User searcher, OrderBy orderBy)
OrderByValidator
validate
in interface OrderByValidator
searcher
- the user performing the validation.orderBy
- the OrderBy containing the SearchSorts.Copyright © 2002-2015 Atlassian. All Rights Reserved.