com.atlassian.jira.jql
Class NoOpClauseHandler
java.lang.Object
com.atlassian.jira.jql.NoOpClauseHandler
- All Implemented Interfaces:
- ClauseHandler
public class NoOpClauseHandler
- extends Object
- implements ClauseHandler
A clause handler that does nothing and will show the passed in error message when validate is invoked. This will
return a false query if the query factory is invoked, it will also generate an All context if asked for its
context. The permission handler is the one that is passed in.
- Since:
- v4.0
NoOpClauseHandler
public NoOpClauseHandler(ClausePermissionHandler clausePermissionHandler,
String fieldId,
ClauseNames clauseNames,
String validationI18nKey)
getInformation
public ClauseInformation getInformation()
- Specified by:
getInformation
in interface ClauseHandler
- Returns:
- an object that contains some static naming information (clause names, field id, index id) about the clause
handler and its associations.
getFactory
public ClauseQueryFactory getFactory()
- Specified by:
getFactory
in interface ClauseHandler
- Returns:
- a factory that can create a lucene query for the clause.
getValidator
public ClauseValidator getValidator()
- Specified by:
getValidator
in interface ClauseHandler
- Returns:
- a validator that will inspect the clause and return any validation errors it encounters.
getPermissionHandler
public ClausePermissionHandler getPermissionHandler()
- Specified by:
getPermissionHandler
in interface ClauseHandler
- Returns:
- a permission handler that will check the users who is executing the queries permission to include
the clause.
getClauseContextFactory
public ClauseContextFactory getClauseContextFactory()
- Specified by:
getClauseContextFactory
in interface ClauseHandler
- Returns:
- a clause context factory that will be able to generate the clause context
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2002-2014 Atlassian. All Rights Reserved.