public final class ValidatingDecoratorContextFactory extends Object implements ClauseContextFactory
ClauseContextFactory
that wraps another ClauseContextFactory to ensure
that the getClauseContext(com.atlassian.jira.user.ApplicationUser, com.atlassian.query.clause.TerminalClause)
method
on the wrapped object is only called when this passed TerminalClause passes usage validation.Constructor and Description |
---|
ValidatingDecoratorContextFactory(OperatorUsageValidator usageValidator,
ClauseContextFactory delegatingContextFactory) |
Modifier and Type | Method and Description |
---|---|
ClauseContext |
getClauseContext(ApplicationUser searcher,
TerminalClause terminalClause)
Generates a clause context for the associated handler.
|
public ValidatingDecoratorContextFactory(OperatorUsageValidator usageValidator, ClauseContextFactory delegatingContextFactory)
public ClauseContext getClauseContext(ApplicationUser searcher, TerminalClause terminalClause)
ClauseContextFactory
getClauseContext
in interface ClauseContextFactory
searcher
- the user who is performing the searchterminalClause
- the clause for which this factory is generating a context.Copyright © 2002-2019 Atlassian. All Rights Reserved.