mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
append optional dependencies to webapp dto
This commit is contained in:
@@ -53,6 +53,7 @@ public class PluginDto extends HalRepresentation {
|
||||
private Boolean core;
|
||||
private Boolean markedForUninstall;
|
||||
private Set<String> dependencies;
|
||||
private Set<String> optionalDependencies;
|
||||
|
||||
public PluginDto(Links links) {
|
||||
add(links);
|
||||
|
||||
@@ -68,6 +68,7 @@ public abstract class PluginDtoMapper {
|
||||
|
||||
private void map(PluginDto dto, Plugin plugin) {
|
||||
dto.setDependencies(plugin.getDescriptor().getDependencies());
|
||||
dto.setOptionalDependencies(plugin.getDescriptor().getOptionalDependencies());
|
||||
map(plugin.getDescriptor().getInformation(), dto);
|
||||
if (dto.getCategory() == null) {
|
||||
dto.setCategory("Miscellaneous");
|
||||
|
||||
Reference in New Issue
Block a user