public class WorkbasketQueryImpl extends Object implements WorkbasketQuery
| Constructor and Description |
|---|
WorkbasketQueryImpl(TaskanaEngine taskanaEngine,
WorkbasketAccessMapper workbasketAccessMapper) |
| Modifier and Type | Method and Description |
|---|---|
WorkbasketQuery |
accessIdsHavePersmission(WorkbasketAuthorization permission,
String... accessIds)
Setting up the permission which should be granted on the result workbaskets and the users which should be
checked.
|
WorkbasketQuery |
callerHasPermission(WorkbasketAuthorization permission)
Setting up the permissions for the accessIds of the CurrentUserContext.
|
WorkbasketQuery |
createdAfter(java.time.Instant createdAfter)
Add your createdAfter-Date to your query.
|
WorkbasketQuery |
createdBefore(java.time.Instant createdBefore)
Add your createdBefore-Date to your query.
|
WorkbasketQuery |
descriptionLike(String description)
Add your description to your query.
|
WorkbasketQuery |
domainIn(String... domain)
Add your domains to your query.
|
String[] |
getAccessId() |
WorkbasketAuthorization |
getAuthorization() |
java.time.Instant |
getCreatedAfter() |
java.time.Instant |
getCreatedBefore() |
String |
getDescription() |
String[] |
getDomain() |
String[] |
getKey() |
java.time.Instant |
getModifiedAfter() |
java.time.Instant |
getModifiedBefore() |
String[] |
getName() |
String[] |
getOwner() |
WorkbasketType[] |
getType() |
WorkbasketQuery |
keyIn(String... key)
Add your keys to your query.
|
List<WorkbasketSummary> |
list()
This method will return a list of defined
T objects. |
List<WorkbasketSummary> |
list(int offset,
int limit)
This method will return a list of defined
T objects with specified offset and an limit. |
WorkbasketQuery |
modifiedAfter(java.time.Instant modifiedAfter)
Add your modifiedAfter-Date to your query.
|
WorkbasketQuery |
modifiedBefore(java.time.Instant modifiedBefore)
Add your modifiedBefore-Date to your query.
|
WorkbasketQuery |
nameIn(String... names)
Add your names to your query.
|
WorkbasketQuery |
ownerIn(String... owners)
Add the owners to your query.
|
WorkbasketSummary |
single()
This method will return a single object of
T. |
String |
toString() |
WorkbasketQuery |
typeIn(WorkbasketType... type)
Add your types to your query.
|
public WorkbasketQueryImpl(TaskanaEngine taskanaEngine, WorkbasketAccessMapper workbasketAccessMapper)
public WorkbasketQuery keyIn(String... key)
WorkbasketQuerykeyIn in interface WorkbasketQuerykey - the keys as Stringspublic WorkbasketQuery domainIn(String... domain)
WorkbasketQuerydomainIn in interface WorkbasketQuerydomain - the domains as Stringspublic WorkbasketQuery typeIn(WorkbasketType... type)
WorkbasketQuerytypeIn in interface WorkbasketQuerytype - the typespublic WorkbasketQuery nameIn(String... names)
WorkbasketQuerynameIn in interface WorkbasketQuerynames - the names as Stringspublic WorkbasketQuery createdAfter(java.time.Instant createdAfter)
WorkbasketQuerycreatedAfter in interface WorkbasketQuerycreatedAfter - as Instantpublic WorkbasketQuery createdBefore(java.time.Instant createdBefore)
WorkbasketQuerycreatedBefore in interface WorkbasketQuerycreatedBefore - as Instantpublic WorkbasketQuery modifiedAfter(java.time.Instant modifiedAfter)
WorkbasketQuerymodifiedAfter in interface WorkbasketQuerymodifiedAfter - as Instantpublic WorkbasketQuery modifiedBefore(java.time.Instant modifiedBefore)
WorkbasketQuerymodifiedBefore in interface WorkbasketQuerymodifiedBefore - as Instantpublic WorkbasketQuery descriptionLike(String description)
WorkbasketQuerydescriptionLike in interface WorkbasketQuerydescription - your descriptionpublic WorkbasketQuery ownerIn(String... owners)
WorkbasketQueryownerIn in interface WorkbasketQueryowners - the owners as Stringpublic WorkbasketQuery accessIdsHavePersmission(WorkbasketAuthorization permission, String... accessIds) throws InvalidArgumentException
WorkbasketQueryaccessIdsHavePersmission in interface WorkbasketQuerypermission - which should be used for results.accessIds - Users which sould be checked for given permissions on workbaskets.InvalidArgumentException - when permission OR the accessIds are NULL.public WorkbasketQuery callerHasPermission(WorkbasketAuthorization permission) throws InvalidArgumentException
WorkbasketQuerycallerHasPermission in interface WorkbasketQuerypermission - which should be used for results.InvalidArgumentException - when permission OR accessIds of the userContext are NULL.public List<WorkbasketSummary> list()
BaseQueryT objects.list in interface BaseQuery<WorkbasketSummary>public List<WorkbasketSummary> list(int offset, int limit)
BaseQueryT objects with specified offset and an limit.list in interface BaseQuery<WorkbasketSummary>offset - index of the first element which should be returned.limit - number of elements which should be returned beginning with offset.public WorkbasketSummary single()
BaseQueryT.single in interface BaseQuery<WorkbasketSummary>public String[] getAccessId()
public WorkbasketAuthorization getAuthorization()
public String[] getName()
public String[] getKey()
public String[] getDomain()
public WorkbasketType[] getType()
public java.time.Instant getCreatedAfter()
public java.time.Instant getCreatedBefore()
public java.time.Instant getModifiedAfter()
public java.time.Instant getModifiedBefore()
public String getDescription()
public String[] getOwner()
Copyright © 2018. All rights reserved.