com.metaeffekt.artifact.enrichment.configurations.CpeDerivationEnrichmentConfiguration Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2021-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.metaeffekt.artifact.enrichment.configurations;
import com.metaeffekt.mirror.query.NvdCpeApiVendorProductIndexQuery;
import lombok.Getter;
import org.json.JSONArray;
import org.json.JSONObject;
import org.metaeffekt.core.inventory.processor.configuration.ProcessConfiguration;
import org.metaeffekt.core.inventory.processor.configuration.ProcessMisconfiguration;
import java.util.*;
import java.util.stream.Collectors;
public class CpeDerivationEnrichmentConfiguration extends ProcessConfiguration {
@Getter
private int maxCorrelatedCpePerArtifact = Integer.MAX_VALUE;
/**
* The list of terms limiters to be used for determining the secondary indication terms.
* If multiple are provided, they will be applied in the order they are provided.
*
* Default value is: [{"type":"MinTermsLimiter","minTerms":60}]
which uses the {@link NvdCpeApiVendorProductIndexQuery.MinTermsLimiter} with a minimum of 60 terms.
*
* Available types can be found next to {@link NvdCpeApiVendorProductIndexQuery.TermsLimiter} and include:
*
* - {@link NvdCpeApiVendorProductIndexQuery.MinTermsLimiter}
* - {@link NvdCpeApiVendorProductIndexQuery.MaxTermsLimiter}
* - {@link NvdCpeApiVendorProductIndexQuery.TopPTermsLimiter}
* - {@link NvdCpeApiVendorProductIndexQuery.TopNTermsLimiter}
*/
private List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy