Tabnine Logo
SearchHandlerManager.getSearchersByClauseName
Code IndexAdd Tabnine to your IDE (free)

How to use
getSearchersByClauseName
method
in
com.atlassian.jira.issue.search.managers.SearchHandlerManager

Best Java code snippets using com.atlassian.jira.issue.search.managers.SearchHandlerManager.getSearchersByClauseName (Showing top 2 results out of 315)

origin: com.atlassian.jira/jira-core

  private IssueSearcher getSearcher(final TerminalClause clause)
  {
    final Collection<IssueSearcher<?>> searchersByClauseName = searchHandlerManager.getSearchersByClauseName(user, clause.getName());
    if (searchersByClauseName.size() == 1 )
    {
      return searchersByClauseName.iterator().next();
    }
    log.debug(String.format("Unable to resolve only one searcher for field '%s', found '%d' searchers", clause.getName(), searchersByClauseName.size()));
    return null;
  }
}
origin: com.atlassian.jira/jira-core

boolean calculateDoesQueryValidationFitFilterForm(final ApplicationUser user, final SearchContext searchContext, final Query query)
{
  final ValidatorVisitor validatorVisitor = validatorVisitorFactory.createVisitor(user, null, query.getWhereClause());
  TerminalClauseCollectingVisitor terminalClauseCollectingVisitor = new TerminalClauseCollectingVisitor();
  query.getWhereClause().accept(terminalClauseCollectingVisitor);
  Collection<TerminalClause> clauses = terminalClauseCollectingVisitor.getClauses();
  for (TerminalClause clause : clauses)
  {
    final Collection<IssueSearcher<?>> issueSearchers = searchHandlerManager.getSearchersByClauseName(user, clause.getName());
    for (IssueSearcher<?> issueSearcher : issueSearchers)
    {
      if (!checkValidationMatches(user, query, searchContext, clause, issueSearcher, validatorVisitor))
      {
        return false;
      }
    }
  }
  return true;
}
com.atlassian.jira.issue.search.managersSearchHandlerManagergetSearchersByClauseName

Javadoc

Return a collection of com.atlassian.jira.issue.search.searchers.IssueSearchers registered against the passed JQL clause name. This will only return the IssueSearchers that the user has permission to see as specified by the com.atlassian.jira.issue.search.searchers.renderer.SearchRenderer#isShown(User,com.atlassian.jira.issue.search.SearchContext)method.

Popular methods of SearchHandlerManager

  • getJqlClauseNames
    Get the com.atlassian.jira.issue.search.ClauseNames associated with the provided field name. A colle
  • getClauseHandler
    Return a collection of com.atlassian.jira.jql.ClauseHandlers registered against the passed JQL claus
  • getFieldIds
    Gets the field ids that are associated with the provided jqlClauseName. The reason this returns a co
  • getSearcher
    Get a searcher by the searchers name.
  • getAllSearchers
    Return all the active searchers in JIRA. It will not return the searchers unless they are associated
  • getSearcherGroups
    Get all searcher groups with the IssueSearcher that are applicable for the context. * com.atlassian.
  • getSearchers
    Get searchers that are applicable for a given context. This is found through the * com.atlassian.jir
  • getVisibleClauseHandlers
    Get all the available clause handlers that the searcher can see.
  • refresh
    Refreshes the com.atlassian.jira.issue.search.managers.SearchHandlerManager.

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • findViewById (Activity)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JFileChooser (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now