com.atlassian.jira.jql
Class NoOpClauseHandler

java.lang.Object
  extended by com.atlassian.jira.jql.NoOpClauseHandler
All Implemented Interfaces:
ClauseHandler

public class NoOpClauseHandler
extends java.lang.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

Constructor Summary
NoOpClauseHandler(ClausePermissionHandler clausePermissionHandler, java.lang.String fieldId, ClauseNames clauseNames, java.lang.String validationI18nKey)
           
 
Method Summary
 ClauseContextFactory getClauseContextFactory()
           
 ClauseQueryFactory getFactory()
           
 ClauseInformation getInformation()
           
 ClausePermissionHandler getPermissionHandler()
           
 ClauseValidator getValidator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpClauseHandler

public NoOpClauseHandler(ClausePermissionHandler clausePermissionHandler,
                         java.lang.String fieldId,
                         ClauseNames clauseNames,
                         java.lang.String validationI18nKey)
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.

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


Copyright © 2002-2011 Atlassian. All Rights Reserved.