class VulnerabilityService implements Constants {

	public List<Map<String, Object>> getVulnerabilityByQid(String qid) {

		List<Map<String, Object>> vulnByCategories = new ArrayList<>();
		Map<String, Object> vulnKbData = vulnerabilityRepository.getVulnerabilityByQid(qid);
		vulnByCategories.add(formGeneralCategory(vulnKbData));
		vulnByCategories.add(formDetailsCategory(vulnKbData));
		vulnByCategories.add(formSoftwareCategory(vulnKbData));
		vulnByCategories.add(formImpactCategory(vulnKbData));
		vulnByCategories.add(formThreatCategory(vulnKbData));
		vulnByCategories.add(formSolutionCategory(vulnKbData));
		vulnByCategories.add(formExploitabilityCategory(vulnKbData));
		vulnByCategories.add(formAssociatedMalware(vulnKbData));
		return vulnByCategories;
	}

}