public interface IIndex
Modifier and Type | Field and Description |
---|---|
static int |
NOT_AVAILABLE |
static int |
NOT_PRESENT |
static int |
PRESENT |
static int |
SEARCH_ALL |
static String |
SEARCH_ARCHETYPE |
static String |
SEARCH_ARTIFACT |
static String |
SEARCH_GROUP |
static int |
SEARCH_JARS |
static int |
SEARCH_JAVADOCS |
static String |
SEARCH_PACKAGING |
static String |
SEARCH_PARENTS
like SEARCH_ARTIFACT but will only return artifacts with packaging == pom
|
static String |
SEARCH_PLUGIN |
static String |
SEARCH_SHA1 |
static int |
SEARCH_SOURCES |
static int |
SEARCH_TESTS |
Modifier and Type | Method and Description |
---|---|
Collection<IndexedArtifact> |
find(Collection<SearchExpression> groupId,
Collection<SearchExpression> artifactId,
Collection<SearchExpression> version,
Collection<SearchExpression> packaging)
Performs a search for artifacts with given parameters.
|
Collection<IndexedArtifact> |
find(SearchExpression groupId,
SearchExpression artifactId,
SearchExpression version,
SearchExpression packaging)
Performs a search for artifacts with given parameters.
|
IndexedArtifactFile |
getIndexedArtifactFile(ArtifactKey artifact) |
IndexedArtifactFile |
identify(File file) |
Map<String,IndexedArtifact> |
search(SearchExpression expression,
String searchType)
Convenience method to search in all indexes enabled for repositories defined in settings.xml.
|
Map<String,IndexedArtifact> |
search(SearchExpression expression,
String searchType,
int classifier)
Convenience method to search in all indexes enabled for repositories defined in settings.xml.
|
static final String SEARCH_GROUP
static final String SEARCH_ARTIFACT
static final String SEARCH_PLUGIN
static final String SEARCH_ARCHETYPE
static final String SEARCH_PACKAGING
static final String SEARCH_SHA1
static final String SEARCH_PARENTS
static final int SEARCH_JARS
static final int SEARCH_JAVADOCS
static final int SEARCH_SOURCES
static final int SEARCH_TESTS
static final int SEARCH_ALL
static final int PRESENT
static final int NOT_PRESENT
static final int NOT_AVAILABLE
IndexedArtifactFile getIndexedArtifactFile(ArtifactKey artifact) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
IndexedArtifactFile identify(File file) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
Collection<IndexedArtifact> find(SearchExpression groupId, SearchExpression artifactId, SearchExpression version, SearchExpression packaging) throws org.eclipse.core.runtime.CoreException
groupId
- artifactId
- version
- packaging
- org.eclipse.core.runtime.CoreException
Collection<IndexedArtifact> find(Collection<SearchExpression> groupId, Collection<SearchExpression> artifactId, Collection<SearchExpression> version, Collection<SearchExpression> packaging) throws org.eclipse.core.runtime.CoreException
find(SearchExpression, SearchExpression, SearchExpression, SearchExpression)
, but here you are able
to pass in multiple values for all searches. All elements of collections will form an "OR" of one query.groupId
- artifactId
- version
- packaging
- org.eclipse.core.runtime.CoreException
Map<String,IndexedArtifact> search(SearchExpression expression, String searchType) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
Map<String,IndexedArtifact> search(SearchExpression expression, String searchType, int classifier) throws org.eclipse.core.runtime.CoreException
term
- - search termsearchType
- - query type. Should be one of the SEARCH_* values.classifier
- - the type of classifiers to search for, SEARCH_ALL, SEARCH_JAVADOCS, SEARCH_SOURCES,
SEARCH_TESTSorg.eclipse.core.runtime.CoreException
Copyright © 2005–2015 Sonatype, Inc.. All rights reserved.