1package org.apache.archiva.indexer.search;
2/*3 * Licensed to the Apache Software Foundation (ASF) under one4 * or more contributor license agreements. See the NOTICE file5 * distributed with this work for additional information6 * regarding copyright ownership. The ASF licenses this file7 * to you under the Apache License, Version 2.0 (the8 * "License"); you may not use this file except in compliance9 * with the License. You may obtain a copy of the License at10 *11 * http://www.apache.org/licenses/LICENSE-2.012 *13 * Unless required by applicable law or agreed to in writing,14 * software distributed under the License is distributed on an15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY16 * KIND, either express or implied. See the License for the17 * specific language governing permissions and limitations18 * under the License.19 */2021import org.apache.archiva.model.ArchivaArtifactModel;
22import org.apache.commons.lang3.StringUtils;
2324import java.util.Arrays;
25import java.util.List;
26import java.util.Map;
2728/**29 * @author Olivier Lamy30 */31publicclassNoClassifierArtifactInfoFilter32implements ArtifactInfoFilter
33 {
34publicstaticfinalNoClassifierArtifactInfoFilteractInfoFilter.html#NoClassifierArtifactInfoFilter">NoClassifierArtifactInfoFilter INSTANCE = newNoClassifierArtifactInfoFilter();
3536publicstaticfinal List<? extends ArtifactInfoFilter> LIST = Arrays.asList( INSTANCE );
3738 @Override
39publicboolean addArtifactInResult( ArchivaArtifactModel artifact, Map<String, SearchResultHit> currentResult )
40 {
41return StringUtils.isBlank( artifact.getClassifier() );
42 }
43 }