public interface WorkbasketService
| Modifier and Type | Method and Description |
|---|---|
void |
checkAuthorization(String workbasketId,
WorkbasketAuthorization authorization)
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> permission)
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.
|
Workbasket getWorkbasket(String workbasketId) throws WorkbasketNotFoundException
workbasketId - TODOWorkbasketNotFoundException - TODOList<Workbasket> getWorkbaskets()
Workbasket createWorkbasket(Workbasket workbasket)
workbasket - The workbasket to createWorkbasket updateWorkbasket(Workbasket workbasket) throws NotAuthorizedException
workbasket - The workbasket to updateNotAuthorizedException - TODOWorkbasketAccessItem createWorkbasketAuthorization(WorkbasketAccessItem workbasketAccessItem)
workbasketAccessItem - the new workbasketAccessItemWorkbasketAccessItem updateWorkbasketAuthorization(WorkbasketAccessItem workbasketAccessItem)
workbasketAccessItem - the AuthorizationList<WorkbasketAccessItem> getAllAuthorizations()
void deleteWorkbasketAuthorization(String id)
id - the specific idvoid checkAuthorization(String workbasketId, WorkbasketAuthorization authorization) throws NotAuthorizedException
workbasketId - the workbasket we want to accessauthorization - the needed AuthorizationNotAuthorizedException - TODOWorkbasketAccessItem getWorkbasketAuthorization(String id)
id - the idWorkbasketAccessItemList<WorkbasketAccessItem> getWorkbasketAuthorizations(String workbasketId)
workbasketId - TODOList<Workbasket> getWorkbaskets(List<WorkbasketAuthorization> permission)
permission - a List of WorkbasketAuthorization enumsWorkbasketQuery createWorkbasketQuery()
WorkbasketQueryCopyright © 2017. All rights reserved.