3 * Copyright (C) 2009-2023 SonarSource SA
4 * mailto:info AT sonarsource DOT com
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 3 of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 package org.sonar.ce.task.projectanalysis.pushevent;
22 import java.util.List;
23 import java.util.Optional;
24 import org.sonar.ce.task.projectanalysis.locations.flow.Flow;
25 import org.sonar.ce.task.projectanalysis.locations.flow.Location;
27 public class TaintVulnerabilityRaised extends IssueEvent {
29 private static final String EVENT_NAME = "TaintVulnerabilityRaised";
31 private String branch;
32 private long creationDate;
33 private String ruleKey;
34 private String severity;
36 private Location mainLocation;
37 private List<Flow> flows;
38 private String ruleDescriptionContextKey;
40 public TaintVulnerabilityRaised() {
45 public String getEventName() {
49 public String getBranch() {
53 public void setBranch(String branch) {
57 public long getCreationDate() {
61 public void setCreationDate(long creationDate) {
62 this.creationDate = creationDate;
65 public String getRuleKey() {
69 public void setRuleKey(String ruleKey) {
70 this.ruleKey = ruleKey;
73 public String getSeverity() {
77 public void setSeverity(String severity) {
78 this.severity = severity;
81 public String getType() {
85 public void setType(String type) {
89 public Location getMainLocation() {
93 public void setMainLocation(Location mainLocation) {
94 this.mainLocation = mainLocation;
97 public List<Flow> getFlows() {
101 public void setFlows(List<Flow> flows) {
105 public Optional<String> getRuleDescriptionContextKey() {
106 return Optional.ofNullable(ruleDescriptionContextKey);
109 public void setRuleDescriptionContextKey(String ruleDescriptionContextKey) {
110 this.ruleDescriptionContextKey = ruleDescriptionContextKey;