com.denimgroup.threadfix.data.entities.DefaultDefectProfile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of threadfix-entities Show documentation
Show all versions of threadfix-entities Show documentation
ThreadFix is a software vulnerability aggregation and management system that reduces the time it takes to fix
software vulnerabilities. ThreadFix imports the results from dynamic, static and manual testing to provide a
centralized view of software security defects across development teams and applications. The system allows
companies to correlate testing results and streamline software remediation efforts by simplifying feeds to
software issue trackers. By auto generating application firewall rules, this tool allows organizations to
continue remediation work uninterrupted. ThreadFix empowers managers with vulnerability trending reports that
show progress over time, giving them justification for their efforts.
ThreadFix is developed and maintained by Denim Group, Ltd (http://www.denimgroup.com) For information about
commercial support and other services, contact Denim Group about ThreadFix
http://www.denimgroup.com/resources-threadfix/
package com.denimgroup.threadfix.data.entities;
import java.util.List;
import javax.persistence.*;
import com.denimgroup.threadfix.views.AllViews;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonView;
@Entity
@Table(name = "DefaultDefectProfile")
public class DefaultDefectProfile extends AuditableEntity {
private static final long serialVersionUID = -1581568334031972837L;
private String name;
private List defaultDefectFields;
private DefectTracker defectTracker;
private Application referenceApplication;
private List applicationsWithMainProfile;
@Column(length = 25, nullable = false)
@JsonView(Object.class) // This means it will be included in all ObjectWriters with Views.
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Transient
@JsonView(Object.class) // This means it will be included in all ObjectWriters with Views.
public String getFullName() {
if (referenceApplication != null) {
return referenceApplication.getName() + " / " + name;
}
return name;
}
@ManyToOne
@JoinColumn(name = "defectTrackerId")
@JsonIgnore
public DefectTracker getDefectTracker() {
return defectTracker;
}
public void setDefectTracker(DefectTracker defectTracker) {
this.defectTracker = defectTracker;
}
@ManyToOne
@JoinColumn(name = "applicationId")
@JsonView(AllViews.DefectTrackerInfos.class)
public Application getReferenceApplication() {
return referenceApplication;
}
public void setReferenceApplication(Application application) {
this.referenceApplication = application;
}
@OneToMany(mappedBy = "defaultDefectProfile", cascade = CascadeType.ALL)
@JsonIgnore
public List getDefaultDefectFields() {
return defaultDefectFields;
}
public void setDefaultDefectFields(List defaultDefectFields) {
this.defaultDefectFields = defaultDefectFields;
}
@OneToMany(mappedBy = "mainDefaultDefectProfile")
@JsonIgnore
public List getApplicationsWithMainProfile() {
return applicationsWithMainProfile;
}
public void setApplicationsWithMainProfile(
List applicationsWithMainProfile) {
this.applicationsWithMainProfile = applicationsWithMainProfile;
}
}