com.atlassian.jira.jql.validator
Class DefaultOrderByValidator
java.lang.Object
com.atlassian.jira.jql.validator.DefaultOrderByValidator
- All Implemented Interfaces:
- OrderByValidator
@InjectableComponent
public class DefaultOrderByValidator
- extends Object
- implements OrderByValidator
- Since:
- v4.0
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultOrderByValidator
public DefaultOrderByValidator(SearchHandlerManager searchHandlerManager,
FieldManager fieldManager,
I18nHelper.BeanFactory iBeanFactory)
validate
public MessageSet validate(com.atlassian.crowd.embedded.api.User searcher,
OrderBy orderBy)
- Description copied from interface:
OrderByValidator
- 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.
- Specified by:
validate
in interface OrderByValidator
- Parameters:
searcher
- the user performing the validation.orderBy
- the OrderBy containing the SearchSorts.
- Returns:
- a MessageSet that will contain i18n'ed messages if something does not pass validation and will be
empty if all is well, not null.
Copyright © 2002-2013 Atlassian. All Rights Reserved.