Package com.atlassian.jira.jql
Class NoOpClauseHandler
java.lang.Object
com.atlassian.jira.jql.NoOpClauseHandler
- All Implemented Interfaces:
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
-
Constructor Summary
ConstructorsConstructorDescriptionNoOpClauseHandler
(ClausePermissionHandler clausePermissionHandler, String fieldId, ClauseNames clauseNames, String validationI18nKey) -
Method Summary
Modifier and TypeMethodDescriptionGet a mapper that can create a search query for the clause.toString()
-
Constructor Details
-
NoOpClauseHandler
public NoOpClauseHandler(ClausePermissionHandler clausePermissionHandler, String fieldId, ClauseNames clauseNames, String validationI18nKey)
-
-
Method Details
-
getInformation
- Specified by:
getInformation
in interfaceClauseHandler
- Returns:
- an object that contains some static naming information (clause names, field id, index id) about the clause handler and its associations.
-
getFactory
-
getValidator
- Specified by:
getValidator
in interfaceClauseHandler
- Returns:
- a validator that will inspect the clause and return any validation errors it encounters.
-
getPermissionHandler
- Specified by:
getPermissionHandler
in interfaceClauseHandler
- Returns:
- a permission handler that will check the users who is executing the queries permission to include the clause.
-
getClauseContextFactory
- Specified by:
getClauseContextFactory
in interfaceClauseHandler
- Returns:
- a clause context factory that will be able to generate the clause context
-
toString
-
getMapper
Description copied from interface:ClauseHandler
Get a mapper that can create a search query for the clause.- Specified by:
getMapper
in interfaceClauseHandler
- Returns:
- @{link ClauseQueryMapper} that can create a search query for the clause.
-