Class WorkbasketSummaryRepresentationModelAssembler
- java.lang.Object
-
- pro.taskana.workbasket.rest.assembler.WorkbasketSummaryRepresentationModelAssembler
-
- All Implemented Interfaces:
org.springframework.hateoas.server.RepresentationModelAssembler<pro.taskana.workbasket.api.models.WorkbasketSummary,WorkbasketSummaryRepresentationModel>,CollectionRepresentationModelAssembler<pro.taskana.workbasket.api.models.WorkbasketSummary,WorkbasketSummaryRepresentationModel,DistributionTargetsCollectionRepresentationModel>,PagedRepresentationModelAssembler<pro.taskana.workbasket.api.models.WorkbasketSummary,WorkbasketSummaryRepresentationModel,WorkbasketSummaryPagedRepresentationModel>
@Component public class WorkbasketSummaryRepresentationModelAssembler extends Object implements PagedRepresentationModelAssembler<pro.taskana.workbasket.api.models.WorkbasketSummary,WorkbasketSummaryRepresentationModel,WorkbasketSummaryPagedRepresentationModel>, CollectionRepresentationModelAssembler<pro.taskana.workbasket.api.models.WorkbasketSummary,WorkbasketSummaryRepresentationModel,DistributionTargetsCollectionRepresentationModel>
EntityModel assembler forWorkbasketSummaryRepresentationModel.
-
-
Constructor Summary
Constructors Constructor Description WorkbasketSummaryRepresentationModelAssembler()WorkbasketSummaryRepresentationModelAssembler(pro.taskana.workbasket.api.WorkbasketService workbasketService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DistributionTargetsCollectionRepresentationModelbuildCollectionEntity(List<WorkbasketSummaryRepresentationModel> content)WorkbasketSummaryPagedRepresentationModelbuildPageableEntity(Collection<WorkbasketSummaryRepresentationModel> content, PageMetadata pageMetadata)pro.taskana.workbasket.api.models.WorkbasketSummarytoEntityModel(WorkbasketSummaryRepresentationModel repModel)WorkbasketSummaryRepresentationModeltoModel(pro.taskana.workbasket.api.models.WorkbasketSummary workbasketSummary)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface pro.taskana.common.rest.assembler.CollectionRepresentationModelAssembler
addLinksToCollectionModel, toTaskanaCollectionModel
-
Methods inherited from interface pro.taskana.common.rest.assembler.PagedRepresentationModelAssembler
addLinksToPagedModel, toPagedModel
-
-
-
-
Method Detail
-
toModel
@NonNull public WorkbasketSummaryRepresentationModel toModel(@NonNull pro.taskana.workbasket.api.models.WorkbasketSummary workbasketSummary)
- Specified by:
toModelin interfaceorg.springframework.hateoas.server.RepresentationModelAssembler<pro.taskana.workbasket.api.models.WorkbasketSummary,WorkbasketSummaryRepresentationModel>
-
toEntityModel
public pro.taskana.workbasket.api.models.WorkbasketSummary toEntityModel(WorkbasketSummaryRepresentationModel repModel)
-
buildPageableEntity
public WorkbasketSummaryPagedRepresentationModel buildPageableEntity(Collection<WorkbasketSummaryRepresentationModel> content, PageMetadata pageMetadata)
- Specified by:
buildPageableEntityin interfacePagedRepresentationModelAssembler<pro.taskana.workbasket.api.models.WorkbasketSummary,WorkbasketSummaryRepresentationModel,WorkbasketSummaryPagedRepresentationModel>
-
buildCollectionEntity
public DistributionTargetsCollectionRepresentationModel buildCollectionEntity(List<WorkbasketSummaryRepresentationModel> content)
- Specified by:
buildCollectionEntityin interfaceCollectionRepresentationModelAssembler<pro.taskana.workbasket.api.models.WorkbasketSummary,WorkbasketSummaryRepresentationModel,DistributionTargetsCollectionRepresentationModel>
-
-