com.atlassian.greenhopper.customfield.backlog
Class BacklogCustomFieldValidator
java.lang.Object
com.atlassian.greenhopper.customfield.backlog.BacklogCustomFieldValidator
- All Implemented Interfaces:
- com.atlassian.jira.jql.validator.ClauseValidator
public class BacklogCustomFieldValidator
- extends java.lang.Object
- implements com.atlassian.jira.jql.validator.ClauseValidator
Validator for backlog custom field terminal clauses.
This object is responsible for checking that a given terminal clause makes "sense", e.g.
in case of backlogs we want to ensure that backlogs for the given backlog names exist as well
as that the user has correct access to them.
Note that to ensure that we don't spill information we don't always return exact errors, e.g.
not having access to a backlog means the backlog does not exist (otherwise the user could deduct that
a backlog actually exists.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BacklogCustomFieldValidator
public BacklogCustomFieldValidator(com.atlassian.jira.jql.operand.JqlOperandResolver operandResolver,
BacklogIndexInfoResolver backlogIndexInfoResolver,
BacklogService backlogService)
validate
public com.atlassian.jira.util.MessageSet validate(com.opensymphony.user.User searcher,
com.atlassian.query.clause.TerminalClause terminalClause)
- Validate the provided terminal clause.
- Specified by:
validate
in interface com.atlassian.jira.jql.validator.ClauseValidator
- Returns:
- a message set containing validation errors. An empty set is returned if no errors are found (as required by JIRA, null is not allowed)
getSupportedOperatorsValidator
protected SupportedOperatorsValidator getSupportedOperatorsValidator()
Copyright © 2007-2011 Atlassian. All Rights Reserved.