public class WorkbasketServiceImpl extends Object implements WorkbasketService
| Constructor and Description |
|---|
WorkbasketServiceImpl() |
WorkbasketServiceImpl(TaskanaEngine taskanaEngine,
WorkbasketMapper workbasketMapper,
DistributionTargetMapper distributionTargetMapper,
WorkbasketAccessMapper workbasketAccessMapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkAuthorization(String workbasketId,
WorkbasketAuthorization workbasketAuthorization)
This method checks the authorization with the saved one for the actual User.
|
Workbasket |
createWorkbasket(Workbasket workbasket)
Create a new Workbasket.
|
WorkbasketAccessItem |
createWorkbasketAuthorization(WorkbasketAccessItem workbasketAccessItem)
Create a new Workbasket Authorization with a Workbasket and a AccessId.
|
WorkbasketQuery |
createWorkbasketQuery()
This method provides a query builder for quering the database.
|
void |
deleteWorkbasketAuthorization(String id)
Deletes a specific authorization.
|
List<WorkbasketAccessItem> |
getAllAuthorizations()
Get all authorizations of the workbasket.
|
Workbasket |
getWorkbasket(String workbasketId)
Get Workbasket for a given id.
|
WorkbasketAccessItem |
getWorkbasketAuthorization(String id)
This method get one WorkbasketAuthorization with an id.
|
List<WorkbasketAccessItem> |
getWorkbasketAuthorizations(String workbasketId)
Get all authorizations for a Workbasket.
|
List<Workbasket> |
getWorkbaskets()
Get all available Workbaskets.
|
List<Workbasket> |
getWorkbaskets(List<WorkbasketAuthorization> permissions)
This method returns the workbaskets for which the current user has all permissions
specified in the permissions list.
|
Workbasket |
updateWorkbasket(Workbasket workbasket)
Update a Workbasket.
|
WorkbasketAccessItem |
updateWorkbasketAuthorization(WorkbasketAccessItem workbasketAccessItem)
This method updates an Workbasket Authorization.
|
public WorkbasketServiceImpl()
public WorkbasketServiceImpl(TaskanaEngine taskanaEngine, WorkbasketMapper workbasketMapper, DistributionTargetMapper distributionTargetMapper, WorkbasketAccessMapper workbasketAccessMapper)
public Workbasket getWorkbasket(String workbasketId) throws WorkbasketNotFoundException
WorkbasketServicegetWorkbasket in interface WorkbasketServiceworkbasketId - TODOWorkbasketNotFoundException - TODOpublic List<Workbasket> getWorkbaskets(List<WorkbasketAuthorization> permissions)
WorkbasketServicegetWorkbaskets in interface WorkbasketServicepermissions - a List of WorkbasketAuthorization enumspublic List<Workbasket> getWorkbaskets()
WorkbasketServicegetWorkbaskets in interface WorkbasketServicepublic Workbasket createWorkbasket(Workbasket workbasket)
WorkbasketServicecreateWorkbasket in interface WorkbasketServiceworkbasket - The workbasket to createpublic Workbasket updateWorkbasket(Workbasket workbasket) throws NotAuthorizedException
WorkbasketServiceupdateWorkbasket in interface WorkbasketServiceworkbasket - The workbasket to updateNotAuthorizedException - TODOpublic WorkbasketAccessItem createWorkbasketAuthorization(WorkbasketAccessItem workbasketAccessItem)
WorkbasketServicecreateWorkbasketAuthorization in interface WorkbasketServiceworkbasketAccessItem - the new workbasketAccessItempublic WorkbasketAccessItem getWorkbasketAuthorization(String id)
WorkbasketServicegetWorkbasketAuthorization in interface WorkbasketServiceid - the idWorkbasketAccessItempublic void deleteWorkbasketAuthorization(String id)
WorkbasketServicedeleteWorkbasketAuthorization in interface WorkbasketServiceid - the specific idpublic List<WorkbasketAccessItem> getAllAuthorizations()
WorkbasketServicegetAllAuthorizations in interface WorkbasketServicepublic void checkAuthorization(String workbasketId, WorkbasketAuthorization workbasketAuthorization) throws NotAuthorizedException
WorkbasketServicecheckAuthorization in interface WorkbasketServiceworkbasketId - the workbasket we want to accessworkbasketAuthorization - the needed AuthorizationNotAuthorizedException - TODOpublic WorkbasketAccessItem updateWorkbasketAuthorization(WorkbasketAccessItem workbasketAccessItem)
WorkbasketServiceupdateWorkbasketAuthorization in interface WorkbasketServiceworkbasketAccessItem - the Authorizationpublic List<WorkbasketAccessItem> getWorkbasketAuthorizations(String workbasketId)
WorkbasketServicegetWorkbasketAuthorizations in interface WorkbasketServiceworkbasketId - TODOpublic WorkbasketQuery createWorkbasketQuery()
WorkbasketServicecreateWorkbasketQuery in interface WorkbasketServiceWorkbasketQueryCopyright © 2017. All rights reserved.