NOT_AVAILABLE, NOT_PRESENT, PRESENT, SEARCH_ALL, SEARCH_ARCHETYPE, SEARCH_ARTIFACT, SEARCH_GROUP, SEARCH_JARS, SEARCH_JAVADOCS, SEARCH_PACKAGING, SEARCH_PARENTS, SEARCH_PLUGIN, SEARCH_SHA1, SEARCH_SOURCES, SEARCH_TESTS| Constructor and Description |
|---|
CompositeIndex(List<IIndex> indexes) |
| 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 term,
String searchType)
Convenience method to search in all indexes enabled for repositories defined in settings.xml.
|
Map<String,IndexedArtifact> |
search(SearchExpression term,
String searchType,
int classifier)
Convenience method to search in all indexes enabled for repositories defined in settings.xml.
|
public IndexedArtifactFile getIndexedArtifactFile(ArtifactKey artifact) throws org.eclipse.core.runtime.CoreException
getIndexedArtifactFile in interface IIndexorg.eclipse.core.runtime.CoreExceptionpublic IndexedArtifactFile identify(File file) throws org.eclipse.core.runtime.CoreException
public Collection<IndexedArtifact> find(SearchExpression groupId, SearchExpression artifactId, SearchExpression version, SearchExpression packaging) throws org.eclipse.core.runtime.CoreException
IIndexpublic Collection<IndexedArtifact> find(Collection<SearchExpression> groupId, Collection<SearchExpression> artifactId, Collection<SearchExpression> version, Collection<SearchExpression> packaging) throws org.eclipse.core.runtime.CoreException
IIndexIIndex.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.public Map<String,IndexedArtifact> search(SearchExpression term, String searchType) throws org.eclipse.core.runtime.CoreException
IIndexpublic Map<String,IndexedArtifact> search(SearchExpression term, String searchType, int classifier) throws org.eclipse.core.runtime.CoreException
IIndexCopyright © 2005-2013 Sonatype, Inc.. All Rights Reserved.