diff options
author | Brett Porter <brett@apache.org> | 2012-01-05 07:52:48 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2012-01-05 07:52:48 +0000 |
commit | f48d71800f1a9e04977a710789b018f95a58d6be (patch) | |
tree | b7c8d8c6243cfa4aa39a6add09058fad6f36822d /archiva-modules/archiva-base/archiva-indexer | |
parent | 25140af4f07df524e6d9f6c50f0cfc21d6beaec3 (diff) | |
download | archiva-f48d71800f1a9e04977a710789b018f95a58d6be.tar.gz archiva-f48d71800f1a9e04977a710789b018f95a58d6be.zip |
fix typo (filer -> filter)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1227518 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-indexer')
-rw-r--r-- | archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/ArtifactInfoFilter.java (renamed from archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/ArtifactInfoFiler.java) | 2 | ||||
-rw-r--r-- | archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/NexusRepositorySearch.java | 16 | ||||
-rw-r--r-- | archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/NoClassifierArtifactInfoFilter.java (renamed from archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/NoClassifierArtifactInfoFiler.java) | 8 |
3 files changed, 13 insertions, 13 deletions
diff --git a/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/ArtifactInfoFiler.java b/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/ArtifactInfoFilter.java index e9f217faf..cecb8c8bf 100644 --- a/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/ArtifactInfoFiler.java +++ b/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/ArtifactInfoFilter.java @@ -26,7 +26,7 @@ import java.util.Map; * @author Olivier Lamy * @since 1.4-M1 */ -public interface ArtifactInfoFiler +public interface ArtifactInfoFilter { boolean addArtifactInResult( ArtifactInfo artifact, Map<String, SearchResultHit> currentResult ); } diff --git a/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/NexusRepositorySearch.java b/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/NexusRepositorySearch.java index 81b76ee5f..436e9df2e 100644 --- a/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/NexusRepositorySearch.java +++ b/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/NexusRepositorySearch.java @@ -124,7 +124,7 @@ public class NexusRepositorySearch // we retun only artifacts without classifier in quick search, olamy cannot find a way to say with this field empty // FIXME cannot find a way currently to setup this in constructQuery !!! - return search( limits, q, indexingContextIds, NoClassifierArtifactInfoFiler.LIST, selectedRepos, false ); + return search( limits, q, indexingContextIds, NoClassifierArtifactInfoFilter.LIST, selectedRepos, false ); } @@ -235,12 +235,12 @@ public class NexusRepositorySearch throw new RepositorySearchException( "No search fields set." ); } - return search( limits, q, indexingContextIds, Collections.<ArtifactInfoFiler>emptyList(), + return search( limits, q, indexingContextIds, Collections.<ArtifactInfoFilter>emptyList(), searchFields.getRepositories(), searchFields.isIncludePomArtifacts() ); } private SearchResults search( SearchResultLimits limits, BooleanQuery q, List<String> indexingContextIds, - List<? extends ArtifactInfoFiler> filters, + List<? extends ArtifactInfoFilter> filters, List<String> selectedRepos, boolean includePoms) throws RepositorySearchException { @@ -448,7 +448,7 @@ public class NexusRepositorySearch private SearchResults convertToSearchResults( FlatSearchResponse response, SearchResultLimits limits, - List<? extends ArtifactInfoFiler> artifactInfoFilers, + List<? extends ArtifactInfoFilter> artifactInfoFilters, List<String>selectedRepos, boolean includePoms) throws RepositoryAdminException { @@ -465,7 +465,7 @@ public class NexusRepositorySearch artifactInfo.packaging ); Map<String, SearchResultHit> hitsMap = results.getHitsMap(); - if ( !applyArtifactInfoFilters( artifactInfo, artifactInfoFilers, hitsMap ) ) + if ( !applyArtifactInfoFilters( artifactInfo, artifactInfoFilters, hitsMap ) ) { continue; } @@ -620,15 +620,15 @@ public class NexusRepositorySearch } private boolean applyArtifactInfoFilters( ArtifactInfo artifactInfo, - List<? extends ArtifactInfoFiler> artifactInfoFilers, + List<? extends ArtifactInfoFilter> artifactInfoFilters, Map<String, SearchResultHit> currentResult ) { - if ( artifactInfoFilers == null || artifactInfoFilers.isEmpty() ) + if ( artifactInfoFilters == null || artifactInfoFilters.isEmpty() ) { return true; } - for ( ArtifactInfoFiler filter : artifactInfoFilers ) + for ( ArtifactInfoFilter filter : artifactInfoFilters ) { if ( !filter.addArtifactInResult( artifactInfo, currentResult ) ) { diff --git a/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/NoClassifierArtifactInfoFiler.java b/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/NoClassifierArtifactInfoFilter.java index 078970299..d34f0b7ad 100644 --- a/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/NoClassifierArtifactInfoFiler.java +++ b/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/NoClassifierArtifactInfoFilter.java @@ -28,12 +28,12 @@ import java.util.Map; /** * @author Olivier Lamy */ -public class NoClassifierArtifactInfoFiler - implements ArtifactInfoFiler +public class NoClassifierArtifactInfoFilter + implements ArtifactInfoFilter { - public static final NoClassifierArtifactInfoFiler INSTANCE = new NoClassifierArtifactInfoFiler(); + public static final NoClassifierArtifactInfoFilter INSTANCE = new NoClassifierArtifactInfoFilter(); - public static final List<? extends ArtifactInfoFiler> LIST = Arrays.asList( INSTANCE ); + public static final List<? extends ArtifactInfoFilter> LIST = Arrays.asList( INSTANCE ); public boolean addArtifactInResult( ArtifactInfo artifact, Map<String, SearchResultHit> currentResult ) { |