Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: c8f2c0153734224949fabbddf2cb3d057cd8bdb2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*******************************************************************************
 * Copyright (c) 2008-2010 Sonatype, Inc.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *      Sonatype, Inc. - initial API and implementation
 *******************************************************************************/

package org.eclipse.m2e.core.ui.internal.search.util;

import java.util.Collection;


/**
 * Interface to be implemented by a SearchEngine.
 * 
 * @author Lukas Krecan
 */
public interface SearchEngine {

  /**
   * Finds groupIds for given expression.
   * 
   * @param searchExpression
   * @param packaging
   * @param containingArtifact When looking for exclusion, contains information about artifact we are excluding from.
   * @return
   */
  public Collection<String> findGroupIds(String searchExpression, Packaging packaging, ArtifactInfo containingArtifact);

  /**
   * Finds artifactIds for given expression
   * 
   * @param groupId
   * @param searchExpression
   * @param packaging
   * @param containingArtifact When looking for exclusion, contains information about artifact we are excluding from.
   * @return
   */
  public Collection<String> findArtifactIds(String groupId, String searchExpression, Packaging packaging,
      ArtifactInfo containingArtifact);

  public Collection<String> findVersions(String groupId, String artifactId, String searchExpression, Packaging packaging);

  public Collection<String> findClassifiers(String groupId, String artifactId, String version, String prefix,
      Packaging packaging);

  public Collection<String> findTypes(String groupId, String artifactId, String version, String prefix,
      Packaging packaging);

}

Back to the top