[Issue: 2800] Put dynamic workflowgroup links on Collections in an array

This commit is contained in:
KevinVdV
2020-07-22 11:31:51 +02:00
parent 8f700cf5ce
commit 239bc5271d
2 changed files with 2 additions and 10 deletions

View File

@@ -47,9 +47,9 @@ public class CollectionResourceWorkflowGroupHalLinkFactory
Map<String, Role> roles = WorkflowUtils.getCollectionRoles(collection);
UUID resourceUuid = UUID.fromString(halResource.getContent().getUuid());
for (Map.Entry<String, Role> entry : roles.entrySet()) {
list.add(buildLink("workflowGroups/" + entry.getKey(), getMethodOn()
list.add(buildLink("workflowGroups", getMethodOn()
.getWorkflowGroupForRole(resourceUuid, null, null,
entry.getKey())));
entry.getKey())).withName(entry.getKey()));
}
}

View File

@@ -44,12 +44,4 @@ public abstract class HALResource<T> extends EntityModel<T> {
public void setPageHeader(EmbeddedPageHeader page) {
this.pageHeader = page;
}
@Override
public EntityModel<T> add(Link link) {
if (!hasLink(link.getRel())) {
return super.add(link);
}
return this;
}
}