public final class ValidatingDecoratorContextFactory extends Object implements ClauseContextFactory
ClauseContextFactory
that wraps another ClauseContextFactory to ensure
that the getClauseContext(User, 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(com.atlassian.crowd.embedded.api.User searcher,
TerminalClause terminalClause)
Generates a clause context for the associated handler.
|
public ValidatingDecoratorContextFactory(OperatorUsageValidator usageValidator, ClauseContextFactory delegatingContextFactory)
public ClauseContext getClauseContext(com.atlassian.crowd.embedded.api.User 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-2015 Atlassian. All Rights Reserved.