@Component public class WorkbasketDefinitionAssembler extends Object
Workbasket into a WorkbasketDefinition
containing all additional information about that workbasket.| Constructor and Description |
|---|
WorkbasketDefinitionAssembler() |
| Modifier and Type | Method and Description |
|---|---|
WorkbasketDefinition |
toDefinition(pro.taskana.Workbasket workbasket)
maps the distro targets to their id to remove overhead.
|
pro.taskana.Workbasket |
toModel(WorkbasketResource wbResource) |
public WorkbasketDefinition toDefinition(pro.taskana.Workbasket workbasket) throws pro.taskana.exceptions.NotAuthorizedException, pro.taskana.exceptions.WorkbasketNotFoundException
workbasket - Workbasket which will be convertedWorkbasketDefinition, 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 pro.taskana.Workbasket toModel(WorkbasketResource wbResource)
Copyright © 2019. All rights reserved.