Examples of search()


Examples of org.rhq.plugins.apache.parser.ApacheDirectiveTree.search()

            executableFile = resolvePathRelativeToServerRoot(executablePath);
        } else {
            String serverRoot = null;

            ApacheDirectiveTree tree = parseRuntimeConfiguration(true);
            List<ApacheDirective> directives = tree.search("/ServerRoot");
            if (!directives.isEmpty())
                if (!directives.get(0).getValues().isEmpty())
                    serverRoot = directives.get(0).getValues().get(0);

            SystemInfo systemInfo = this.resourceContext.getSystemInformation();

Examples of org.sikuli.core.search.ImageSearcher.search()

  @Override
  protected List<ScreenRegion> getUnorderedMatches(ScreenRegion screenRegion){
    ImageSearcher searcher = new ImageSearcher(screenRegion.capture());
    ImageQuery query = new ColorImageQuery(targetImage);
    ScoreFilter<RegionMatch> filter = new ScoreFilter<RegionMatch>(getMinScore());
    List<RegionMatch> topMatches = searcher.search(query, filter, getLimit())
    return convertToScreenRegions(screenRegion, topMatches);
  }
 
}

Examples of org.sindice.siren.demo.SimpleSearcher.search()

    assert keywordQueries.length == jsonQueries.length;

    for (int i = 0; i < keywordQueries.length; i++) {
      Query q = searcher.parseKeywordQuery(keywordQueries[i]);
      logger.info("Executing keyword query: '{}'", keywordQueries[i]);
      String[] results = searcher.search(q, 1000);
      logger.info("Keyword query returned {} results: {}", results.length, Arrays.toString(results));

      q = searcher.parseJsonQuery(jsonQueries[i]);
      logger.info("Executing json query: '{}'", jsonQueries[i]);
      results = searcher.search(q, 1000);

Examples of org.sleuthkit.autopsy.modules.hashdatabase.HashDbSearchAction.search()

    @Override
    public void actionPerformed(ActionEvent e) {
        //HashSearchProvider searcher = Lookup.getDefault().lookup(HashSearchProvider.class);
        //TODO: HashDBSearchAction needs a public constructor and a service registration annotation for the above technique to work
        HashDbSearchAction searcher = HashDbSearchAction.getDefault();
        searcher.search(contentNode);
    }
}

Examples of org.sonar.core.permission.PermissionQuery.search()

    PermissionQuery query = PermissionQueryParser.toQuery(params);

    assertThat(query.permission()).isEqualTo("admin");
    assertThat(query.component()).isEqualTo("org.sample.Sample");
    assertThat(query.template()).isEqualTo("my_template_key");
    assertThat(query.search()).isEqualTo("text");
    assertThat(query.pageSize()).isEqualTo(50);
    assertThat(query.pageIndex()).isEqualTo(2);
    assertThat(query.membership()).isEqualTo(PermissionQuery.ANY);
  }

Examples of org.sonar.server.activity.index.ActivityIndex.search()

    return new ActivityQuery();
  }

  public Result<Activity> search(ActivityQuery query, QueryContext options) {
    ActivityIndex index = indexClient.get(ActivityIndex.class);
    return new Result<Activity>(index, index.search(query, options));
  }
}

Examples of org.sonar.server.rule.index.RuleIndex.search()

  BulkChangeResult bulkActivate(RuleQuery ruleQuery, String profileKey, @Nullable String severity) {
    BulkChangeResult result = new BulkChangeResult();
    RuleIndex ruleIndex = index.get(RuleIndex.class);
    DbSession dbSession = db.openSession(false);
    try {
      Result<Rule> ruleSearchResult = ruleIndex.search(ruleQuery, new QueryContext().setScroll(true)
        .setFieldsToReturn(Arrays.asList(RuleNormalizer.RuleField.KEY.field())));
      Iterator<Rule> rules = ruleSearchResult.scroll();
      while (rules.hasNext()) {
        Rule rule = rules.next();
        try {

Examples of org.springframework.ldap.core.LdapTemplate.search()

                        return attrs.get("distinguishedName").get();
                    }
                };
            @SuppressWarnings("rawtypes")
            List users =
                ldap.search(
                            "OU=users,DC=emea,DC=mycompany,DC=com",
                            filter.toString(),
                            SearchControls.SUBTREE_SCOPE,
                            mapper
                );

Examples of org.springframework.social.twitter.TwitterTemplate.search()

public class SearchDemo {

  public static void main(String[] args) {
    TwitterTemplate template = new TwitterTemplate();
    SearchResults results = template.search("#springintegration");
    for (Tweet tweet : results.getTweets()) {
      System.out.println(tweet.getFromUser() + ": " + tweet.getText());
    }
  }

Examples of org.springmodules.lucene.search.core.LuceneSearchTemplate.search()

        } catch (ParseException e) {
            e.printStackTrace();
            throw new SearchQueryParseException(e.getMessage(), e);
        }
        HitExtractor hitExtractor = new ItemIdHitExtractor();
        return template.search(query, hitExtractor);       
    }

}
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.