mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 17:05:43 +01:00
map Category to Frontend
This commit is contained in:
@@ -3,10 +3,10 @@ package sonia.scm.api.v2.resources;
|
||||
import de.otto.edison.hal.HalRepresentation;
|
||||
import de.otto.edison.hal.Links;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter @Setter
|
||||
@Getter
|
||||
@Setter
|
||||
public class UIPluginDto extends HalRepresentation {
|
||||
|
||||
private String name;
|
||||
|
||||
@@ -29,7 +29,7 @@ public class UIPluginDtoMapper {
|
||||
UIPluginDto dto = new UIPluginDto();
|
||||
dto.setName(plugin.getPlugin().getInformation().getName());
|
||||
dto.setBundles(getScriptResources(plugin));
|
||||
dto.setType("42"); //TODO: add plugin category
|
||||
dto.setType(plugin.getPlugin().getInformation().getCategory() != null ? plugin.getPlugin().getInformation().getCategory() : "No Category defined");
|
||||
dto.setVersion(plugin.getPlugin().getInformation().getVersion());
|
||||
dto.setAuthor(plugin.getPlugin().getInformation().getAuthor());
|
||||
dto.setDescription(plugin.getPlugin().getInformation().getDescription());
|
||||
|
||||
Reference in New Issue
Block a user