コード例 #1
0
  public List executeSearch(String search, int start, int count) {
    ValidationResult validationResult = null;
    SearchQueryMetaData query = buildSearchQuery(validationResult, search);

    SearchEngine se = SearchEngine.getInstance();
    Result result = se.executeSearch(query, start, count, 0);

    return result.getSearchResult().getElements();
  }
コード例 #2
0
  private void buildSearchParams(
      String search, ValidationResult validationResult, SearchQueryBuilder builder) {

    SearchEngine se = SearchEngine.getInstance();
    SearchMetaData smd = se.getSearch(search);
    List spmds = smd.getSearchParameters();

    for (Iterator it = spmds.iterator(); it.hasNext(); ) {
      SearchParameterMetaData spmd = (SearchParameterMetaData) it.next();
      ContainerMetaData cmd = spmd.getContainer();
    }
  }
コード例 #3
0
  private void buildResultParams(String search, SearchQueryBuilder builder) {
    SearchEngine se = SearchEngine.getInstance();
    SearchMetaData smd = se.getSearch(search);

    builder.buildResultParams(smd.getSelectedResultParameterNames());
  }