class VulnerabilityRepository implements Constants {

	public List<Map<String, Object>> getDetailsByResourceId(String assetGroup, Map<String, Object> mustFilter,
			List<String> resourceFieldList, Map<String, Object> mustTermFilter) throws DataException {
		List<Map<String, Object>> results = new ArrayList<>();
		try {

			results = elasticSearchRepository.getSortedDataFromES(assetGroup, null, mustFilter, null, null,
					resourceFieldList, mustTermFilter, null);

		} catch (Exception e) {
			LOGGER.error("Error in getDetailsByResourceId", e);
			throw new DataException();
		}

		return results;
	}

}