com.atlassian.jira.jql
Class DefaultValuesGeneratingClauseHandler

java.lang.Object
  extended by com.atlassian.jira.jql.DefaultValuesGeneratingClauseHandler
All Implemented Interfaces:
ClauseHandler, ValueGeneratingClauseHandler

public class DefaultValuesGeneratingClauseHandler
extends java.lang.Object
implements ClauseHandler, ValueGeneratingClauseHandler

Since:
v4.0

Constructor Summary
DefaultValuesGeneratingClauseHandler(ClauseInformation clauseInformation, ClauseQueryFactory factory, ClauseValidator validator, ClausePermissionHandler permissionHandler, ClauseContextFactory contextFactory, ClauseValuesGenerator valuesGenerator)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 ClauseContextFactory getClauseContextFactory()
           
 ClauseValuesGenerator getClauseValuesGenerator()
           
 ClauseQueryFactory getFactory()
           
 ClauseInformation getInformation()
           
 ClausePermissionHandler getPermissionHandler()
           
 ClauseValidator getValidator()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultValuesGeneratingClauseHandler

public DefaultValuesGeneratingClauseHandler(ClauseInformation clauseInformation,
                                            ClauseQueryFactory factory,
                                            ClauseValidator validator,
                                            ClausePermissionHandler permissionHandler,
                                            ClauseContextFactory contextFactory,
                                            ClauseValuesGenerator valuesGenerator)
Method Detail

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.

getClauseValuesGenerator

public ClauseValuesGenerator getClauseValuesGenerator()
Specified by:
getClauseValuesGenerator in interface ValueGeneratingClauseHandler

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

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2002-2011 Atlassian. All Rights Reserved.