Package com.atlassian.jira.jql
Class DefaultClauseHandler
java.lang.Object
com.atlassian.jira.jql.DefaultClauseHandler
- All Implemented Interfaces:
ClauseHandler
A container for all the objects needed to process a Jql clause.
- Since:
- v4.0
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultClauseHandler
(ClauseInformation information, ClauseQueryFactory factory, ClauseValidator validator, ClausePermissionHandler permissionHandler, ClauseContextFactory contextFactory) Deprecated, for removal: This API element is subject to removal in a future version.since 10.4.DefaultClauseHandler
(ClauseInformation information, ClauseQueryMapper mapper, ClauseQueryFactory factory, ClauseValidator validator, ClausePermissionHandler permissionHandler, ClauseContextFactory contextFactory) Deprecated, for removal: This API element is subject to removal in a future version.since 10.4.DefaultClauseHandler
(ClauseInformation information, ClauseQueryMapper clauseQueryMapper, ClauseValidator validator, ClausePermissionHandler permissionHandler, ClauseContextFactory contextFactory) -
Method Summary
-
Constructor Details
-
DefaultClauseHandler
@Deprecated(since="10.4", forRemoval=true) public DefaultClauseHandler(ClauseInformation information, ClauseQueryFactory factory, ClauseValidator validator, ClausePermissionHandler permissionHandler, ClauseContextFactory contextFactory) Deprecated, for removal: This API element is subject to removal in a future version. -
DefaultClauseHandler
@Deprecated(since="10.4", forRemoval=true) public DefaultClauseHandler(ClauseInformation information, ClauseQueryMapper mapper, ClauseQueryFactory factory, ClauseValidator validator, ClausePermissionHandler permissionHandler, ClauseContextFactory contextFactory) Deprecated, for removal: This API element is subject to removal in a future version.This constructor can be used when both clauseQueryFactory and clauseQueryMapper are used for fallback purposes. -
DefaultClauseHandler
public DefaultClauseHandler(ClauseInformation information, ClauseQueryMapper clauseQueryMapper, ClauseValidator validator, ClausePermissionHandler permissionHandler, ClauseContextFactory contextFactory)
-
-
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
- Specified by:
getFactory
in interfaceClauseHandler
- Returns:
- a mapper that can create a search query for the clause.
-
getMapper
Description copied from interface:ClauseHandler
Get a mapper that can create a search query for the clause. To replace the deprecatedClauseHandler.getFactory()
method.- Specified by:
getMapper
in interfaceClauseHandler
- Returns:
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-