Skip to content
Snippets Groups Projects

Ozg 3936 refactor user profile url provider

Merged Felix Reichenbach requested to merge OZG-3936-refactor-UserProfileUrlProvider into main
33 files
+ 299
753
Compare changes
  • Side-by-side
  • Inline
Files
33
@@ -36,7 +36,6 @@ import org.springframework.stereotype.Component;
import de.ozgcloud.alfa.collaboration.CollaborationController.CollaborationByVorgangController;
import de.ozgcloud.alfa.common.CollectionModelBuilder;
import de.ozgcloud.alfa.common.ModelBuilder;
import de.ozgcloud.alfa.common.command.CommandController;
import de.ozgcloud.alfa.vorgang.VorgangController;
import de.ozgcloud.alfa.vorgang.VorgangWithEingang;
@@ -53,10 +52,8 @@ class CollaborationModelAssembler implements RepresentationModelAssembler<Collab
@Override
public EntityModel<Collaboration> toModel(Collaboration collaboration) {
var selfLink = linkTo(methodOn(CollaborationController.class).getById(collaboration.getId())).withSelfRel();
return ModelBuilder.fromEntity(collaboration)
.addLink(selfLink)
.buildModel();
return EntityModel.of(collaboration)
.add(selfLink);
}
public CollectionModel<EntityModel<Collaboration>> toCollectionModel(Stream<? extends Collaboration> entities, String vorgangId) {
Loading