@Transient @JsonView({ AllViews.HistoryView.class}) public Integer getDefectId() { Defect defect = getDefect(); if (defect != null) { return defect.getId(); } return null; }
private List<Event> retrieveUngrouped(List<String> eventActions, Vulnerability vulnerability) { Set<Integer> vulnIds = set(); vulnIds.add(vulnerability.getId()); Set<Integer> defectIds = null; if (vulnerability.getDefect() != null) { defectIds = set(); defectIds.add(vulnerability.getDefect().getId()); } return retrieveUngrouped(eventActions, null, null, null, null, null, vulnIds, defectIds); } private List<Event> retrieveUngrouped(List<String> eventActions, User user) {
public DeletedDefect(Defect defect) { if (defect != null) { setNativeId(defect.getNativeId()); setId(defect.getId()); setStatus(defect.getStatus()); setDefectURL(defect.getDefectURL()); if (defect.getApplication() != null) { setApplicationId(defect.getApplication().getId()); } } }
setDefectId(vulnerability.getDefect().getId());