mirror of
https://github.com/DependencyTrack/dependency-track.git
synced 2025-10-19 07:53:18 +00:00
Handle supplier in update, patch, and clone operations of components and projects
Signed-off-by: nscuro <nscuro@protonmail.com>
This commit is contained in:
parent
10691c8897
commit
785f1e485e
4 changed files with 43 additions and 0 deletions
|
@ -49,6 +49,7 @@ import org.dependencytrack.notification.NotificationConstants;
|
|||
import org.dependencytrack.notification.NotificationGroup;
|
||||
import org.dependencytrack.notification.NotificationScope;
|
||||
import org.dependencytrack.util.NotificationUtil;
|
||||
|
||||
import javax.jdo.FetchPlan;
|
||||
import javax.jdo.PersistenceManager;
|
||||
import javax.jdo.Query;
|
||||
|
@ -611,6 +612,7 @@ final class ProjectQueryManager extends QueryManager implements IQueryManager {
|
|||
}
|
||||
Project project = new Project();
|
||||
project.setAuthor(source.getAuthor());
|
||||
project.setSupplier(source.getSupplier());
|
||||
project.setPublisher(source.getPublisher());
|
||||
project.setGroup(source.getGroup());
|
||||
project.setName(source.getName());
|
||||
|
@ -748,6 +750,7 @@ final class ProjectQueryManager extends QueryManager implements IQueryManager {
|
|||
deleteVexs(project);
|
||||
removeProjectFromNotificationRules(project);
|
||||
removeProjectFromPolicies(project);
|
||||
delete(project.getMetadata());
|
||||
delete(project.getProperties());
|
||||
delete(getAllBoms(project));
|
||||
delete(project.getChildren());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue