Class WorkbasketBuilder
- java.lang.Object
-
- pro.taskana.workbasket.internal.builder.WorkbasketBuilder
-
public class WorkbasketBuilder extends Object
-
-
Method Summary
-
-
-
Method Detail
-
newWorkbasket
public static WorkbasketBuilder newWorkbasket()
-
key
public WorkbasketBuilder key(String key)
-
name
public WorkbasketBuilder name(String name)
-
description
public WorkbasketBuilder description(String description)
-
owner
public WorkbasketBuilder owner(String owner)
-
domain
public WorkbasketBuilder domain(String domain)
-
type
public WorkbasketBuilder type(WorkbasketType type)
-
customAttribute
public WorkbasketBuilder customAttribute(WorkbasketCustomField customField, String value)
-
orgLevel1
public WorkbasketBuilder orgLevel1(String orgLevel1)
-
orgLevel2
public WorkbasketBuilder orgLevel2(String orgLevel2)
-
orgLevel3
public WorkbasketBuilder orgLevel3(String orgLevel3)
-
orgLevel4
public WorkbasketBuilder orgLevel4(String orgLevel4)
-
markedForDeletion
public WorkbasketBuilder markedForDeletion(boolean markedForDeletion)
-
created
public WorkbasketBuilder created(Instant created)
-
modified
public WorkbasketBuilder modified(Instant modified)
-
buildAndStore
public Workbasket buildAndStore(WorkbasketService workbasketService) throws InvalidArgumentException, WorkbasketAlreadyExistException, DomainNotFoundException, NotAuthorizedException, WorkbasketNotFoundException
-
buildAndStore
public Workbasket buildAndStore(WorkbasketService workbasketService, String userId) throws PrivilegedActionException
- Throws:
PrivilegedActionException
-
buildAndStoreAsSummary
public WorkbasketSummary buildAndStoreAsSummary(WorkbasketService workbasketService) throws InvalidArgumentException, WorkbasketAlreadyExistException, WorkbasketNotFoundException, DomainNotFoundException, NotAuthorizedException
-
buildAndStoreAsSummary
public WorkbasketSummary buildAndStoreAsSummary(WorkbasketService workbasketService, String userId) throws PrivilegedActionException
- Throws:
PrivilegedActionException
-
-