@Component public class WorkbasketDefinitionRepresentationModelAssembler extends Object
Workbasket into a WorkbasketDefinitionRepresentationModel containing
all additional information about that workbasket.| Constructor and Description |
|---|
WorkbasketDefinitionRepresentationModelAssembler(pro.taskana.workbasket.api.WorkbasketService workbasketService) |
| Modifier and Type | Method and Description |
|---|---|
pro.taskana.workbasket.api.models.Workbasket |
toEntityModel(WorkbasketRepresentationModel wbResource) |
WorkbasketDefinitionRepresentationModel |
toModel(pro.taskana.workbasket.api.models.Workbasket workbasket)
maps the distro targets to their id to remove overhead.
|
@Autowired public WorkbasketDefinitionRepresentationModelAssembler(pro.taskana.workbasket.api.WorkbasketService workbasketService)
@NonNull public WorkbasketDefinitionRepresentationModel toModel(pro.taskana.workbasket.api.models.Workbasket workbasket) throws pro.taskana.common.api.exceptions.NotAuthorizedException, pro.taskana.workbasket.api.exceptions.WorkbasketNotFoundException
workbasket - Workbasket which will be convertedWorkbasketDefinitionRepresentationModel, containing the basket, its
distribution targets and its authorizationspro.taskana.common.api.exceptions.NotAuthorizedException - if the user is not authorizedpro.taskana.workbasket.api.exceptions.WorkbasketNotFoundException - if basket is an unknown workbasketpublic pro.taskana.workbasket.api.models.Workbasket toEntityModel(WorkbasketRepresentationModel wbResource)
Copyright © 2020. All rights reserved.