Modifier and Type | Field and Description |
---|---|
private IIndex |
index |
private org.eclipse.core.resources.IProject |
project |
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 |
---|
FilteredIndex(org.eclipse.core.resources.IProject project,
IIndex index) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection<IndexedArtifact> |
filter(java.util.Collection<IndexedArtifact> indexedArtifacts) |
protected IndexedArtifact |
filter(IndexedArtifact original) |
private java.util.Map<java.lang.String,IndexedArtifact> |
filter(java.util.Map<java.lang.String,IndexedArtifact> original) |
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.Map<java.lang.String,IndexedArtifact> |
search(SearchExpression expression,
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 expression,
java.lang.String searchType,
int classifier)
Convenience method to search in all indexes enabled for repositories defined in settings.xml.
|
private final IIndex index
private final org.eclipse.core.resources.IProject project
public FilteredIndex(org.eclipse.core.resources.IProject project, IIndex index)
public IndexedArtifactFile getIndexedArtifactFile(ArtifactKey artifact) throws org.eclipse.core.runtime.CoreException
getIndexedArtifactFile
in interface IIndex
org.eclipse.core.runtime.CoreException
public IndexedArtifactFile identify(java.io.File file) throws org.eclipse.core.runtime.CoreException
public java.util.Collection<IndexedArtifact> find(SearchExpression groupId, SearchExpression artifactId, SearchExpression version, SearchExpression packaging) throws org.eclipse.core.runtime.CoreException
IIndex
public 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
IIndex
IIndex.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 expression, java.lang.String searchType) throws org.eclipse.core.runtime.CoreException
IIndex
public java.util.Map<java.lang.String,IndexedArtifact> search(SearchExpression expression, java.lang.String searchType, int classifier) throws org.eclipse.core.runtime.CoreException
IIndex
protected java.util.Collection<IndexedArtifact> filter(java.util.Collection<IndexedArtifact> indexedArtifacts)
protected IndexedArtifact filter(IndexedArtifact original)
private java.util.Map<java.lang.String,IndexedArtifact> filter(java.util.Map<java.lang.String,IndexedArtifact> original)