@Component public class WorkbasketDefinitionResourceAssembler extends Object
Workbasket into a WorkbasketDefinitionResource containing all
additional information about that workbasket.| Constructor and Description |
|---|
WorkbasketDefinitionResourceAssembler() |
| Modifier and Type | Method and Description |
|---|---|
Workbasket |
toModel(WorkbasketResource wbResource) |
WorkbasketDefinitionResource |
toResource(Workbasket workbasket)
maps the distro targets to their id to remove overhead.
|
public WorkbasketDefinitionResourceAssembler()
public WorkbasketDefinitionResource toResource(Workbasket workbasket) throws pro.taskana.exceptions.NotAuthorizedException, pro.taskana.exceptions.WorkbasketNotFoundException
workbasket - Workbasket which will be convertedWorkbasketDefinitionResource, containing the basket, its distribution
targets and its authorizationspro.taskana.exceptions.NotAuthorizedException - if the user is not authorizedpro.taskana.exceptions.WorkbasketNotFoundException - if basket is an unknown workbasketpublic Workbasket toModel(WorkbasketResource wbResource)
Copyright © 2020. All rights reserved.