| Modifier and Type | Field and Description |
|---|---|
private java.util.List<IIndex> |
indexes |
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(java.util.List<IIndex> indexes) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<IndexedArtifact> |
find(java.util.Collection<SearchExpression> groupId,
java.util.Collection<SearchExpression> artifactId,
java.util.Collection<SearchExpression> version,
java.util.Collection<SearchExpression> packaging)
Performs a search for artifacts with given parameters.
|
java.util.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(java.io.File file) |
java.util.List<IndexedArtifactFile> |
identifyAll(java.io.File file) |
java.util.Map<java.lang.String,IndexedArtifact> |
search(SearchExpression term,
java.lang.String searchType)
Convenience method to search in all indexes enabled for repositories defined in settings.xml.
|
java.util.Map<java.lang.String,IndexedArtifact> |
search(SearchExpression term,
java.lang.String searchType,
int classifier)
Convenience method to search in all indexes enabled for repositories defined in settings.xml.
|
private java.util.List<IIndex> indexes
public CompositeIndex(java.util.List<IIndex> indexes)
public IndexedArtifactFile getIndexedArtifactFile(ArtifactKey artifact) throws org.eclipse.core.runtime.CoreException
getIndexedArtifactFile in interface IIndexorg.eclipse.core.runtime.CoreExceptionpublic IndexedArtifactFile identify(java.io.File file) throws org.eclipse.core.runtime.CoreException
public java.util.List<IndexedArtifactFile> identifyAll(java.io.File file) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic java.util.Collection<IndexedArtifact> find(SearchExpression groupId, SearchExpression artifactId, SearchExpression version, SearchExpression packaging) throws org.eclipse.core.runtime.CoreException
IIndexpublic java.util.Collection<IndexedArtifact> find(java.util.Collection<SearchExpression> groupId, java.util.Collection<SearchExpression> artifactId, java.util.Collection<SearchExpression> version, java.util.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 java.util.Map<java.lang.String,IndexedArtifact> search(SearchExpression term, java.lang.String searchType) throws org.eclipse.core.runtime.CoreException
IIndexpublic java.util.Map<java.lang.String,IndexedArtifact> search(SearchExpression term, java.lang.String searchType, int classifier) throws org.eclipse.core.runtime.CoreException
IIndex