/*
 * Copyright (c) 2021 LG Electronics Inc.
 * SPDX-License-Identifier: AGPL-3.0-only 
 */

package oss.fosslight.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import oss.fosslight.domain.OssMaster;
import oss.fosslight.domain.Vulnerability;

public interface VulnerabilityService {
	HashMap<String, Object> getVulnerabilityList(Vulnerability vulnerability, boolean exportFlag);
	
	HashMap<String, Object> getVulnerabilityAutoComplete();

	List<String> getVulnerabilityVersionAutoComplete(String name);

	Map<String, Object> getVulnListByOssName(OssMaster bean);

	Map<String, Object> getCveInfo(String cveId);

	List<String> getPatchLinkForNvdData(String cveId);

	List<Vulnerability> getSecurityVulnListByOssName(OssMaster bean);

	List<Map<String, Object>> getCpeInfoAndRange(String cveId, String ossName);

	Vulnerability selectNotFixedCveInfo(OssMaster bean);

	boolean getCpeMatchForCpeInfoCnt(Map<String, Object> paramMap);
}
