Class ClassificationSummaryRepresentationModelAssembler
java.lang.Object
pro.taskana.classification.rest.assembler.ClassificationSummaryRepresentationModelAssembler
- All Implemented Interfaces:
org.springframework.hateoas.server.RepresentationModelAssembler<pro.taskana.classification.api.models.ClassificationSummary,,ClassificationSummaryRepresentationModel> PagedRepresentationModelAssembler<pro.taskana.classification.api.models.ClassificationSummary,ClassificationSummaryRepresentationModel, ClassificationSummaryPagedRepresentationModel>
@Component
public class ClassificationSummaryRepresentationModelAssembler
extends Object
implements PagedRepresentationModelAssembler<pro.taskana.classification.api.models.ClassificationSummary,ClassificationSummaryRepresentationModel,ClassificationSummaryPagedRepresentationModel>
EntityModel assembler for
ClassificationSummaryRepresentationModel.-
Constructor Summary
ConstructorsConstructorDescriptionClassificationSummaryRepresentationModelAssembler(pro.taskana.classification.api.ClassificationService classificationService) -
Method Summary
Modifier and TypeMethodDescriptionbuildPageableEntity(Collection<ClassificationSummaryRepresentationModel> content, PageMetadata pageMetadata) pro.taskana.classification.api.models.ClassificationSummarytoModel(pro.taskana.classification.api.models.ClassificationSummary classificationSummary) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pro.taskana.common.rest.assembler.PagedRepresentationModelAssembler
addLinksToPagedModel, toPagedModelMethods inherited from interface org.springframework.hateoas.server.RepresentationModelAssembler
toCollectionModel
-
Constructor Details
-
ClassificationSummaryRepresentationModelAssembler
@Autowired public ClassificationSummaryRepresentationModelAssembler(pro.taskana.classification.api.ClassificationService classificationService)
-
-
Method Details
-
toModel
@NonNull public ClassificationSummaryRepresentationModel toModel(@NonNull pro.taskana.classification.api.models.ClassificationSummary classificationSummary) - Specified by:
toModelin interfaceorg.springframework.hateoas.server.RepresentationModelAssembler<pro.taskana.classification.api.models.ClassificationSummary,ClassificationSummaryRepresentationModel>
-
toEntityModel
public pro.taskana.classification.api.models.ClassificationSummary toEntityModel(ClassificationSummaryRepresentationModel repModel) -
buildPageableEntity
public ClassificationSummaryPagedRepresentationModel buildPageableEntity(Collection<ClassificationSummaryRepresentationModel> content, PageMetadata pageMetadata) - Specified by:
buildPageableEntityin interfacePagedRepresentationModelAssembler<pro.taskana.classification.api.models.ClassificationSummary,ClassificationSummaryRepresentationModel, ClassificationSummaryPagedRepresentationModel>
-