public class WorkbasketQueryImpl extends Object implements WorkbasketQuery
| Constructor and Description |
|---|
WorkbasketQueryImpl(TaskanaEngine taskanaEngine) |
| Modifier and Type | Method and Description |
|---|---|
WorkbasketQuery |
accessIdsHavePermission(WorkbasketAuthorization permission,
String... accessIds)
Setting up the permission which should be granted on the result workbaskets and the users which should be
checked.
|
WorkbasketQuery |
ascending()
Sort the query result in ascending order.
|
WorkbasketQuery |
callerHasPermission(WorkbasketAuthorization permission)
Setting up the permissions for the accessIds of the CurrentUserContext.
|
long |
count()
Counting the amount of rows/results for the current query.
|
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 |
descending()
Sort the query result in descending order.
|
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 |
getDescriptionLike() |
String[] |
getDomain() |
String[] |
getKeyIn() |
String[] |
getKeyLike() |
String[] |
getKeyOrNameLike() |
java.time.Instant |
getModifiedAfter() |
java.time.Instant |
getModifiedBefore() |
String[] |
getNameIn() |
String[] |
getNameLike() |
String |
getOrderClause() |
String[] |
getOwner() |
WorkbasketType[] |
getType() |
WorkbasketQuery |
keyIn(String... key)
Add your keys to your query.
|
WorkbasketQuery |
keyLike(String... keys)
Add keys to your query.
|
WorkbasketQuery |
keyOrNameLike(String... keysOrNames)
Add search strings to your query that are searched case-insensitively in the key and name fields of workbaskets.
|
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 |
nameLike(String... names)
Add names to your query.
|
WorkbasketQuery |
orderByKey()
Sort the query result by key.
|
WorkbasketQuery |
orderByName()
Sort the query result by name.
|
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)
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 nameLike(String... names)
WorkbasketQuerynameLike in interface WorkbasketQuerynames - the names as Stringspublic WorkbasketQuery keyLike(String... keys)
WorkbasketQuerykeyLike in interface WorkbasketQuerykeys - the keys as Stringspublic WorkbasketQuery keyOrNameLike(String... keysOrNames)
WorkbasketQuerykeyOrNameLike in interface WorkbasketQuerykeysOrNames - the seach 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 orderByName() throws InvalidRequestException
WorkbasketQueryorderByName in interface WorkbasketQueryInvalidRequestException - when orderByName() has already been called.public WorkbasketQuery orderByKey() throws InvalidRequestException
WorkbasketQueryorderByKey in interface WorkbasketQueryInvalidRequestException - when orderByKey() has already been called.public WorkbasketQuery ascending() throws InvalidRequestException
WorkbasketQueryascending in interface WorkbasketQueryInvalidRequestException - when neither orderByKey() nor orderByName has already been called previously or when ascending() or
descending() has been called immediately before this callpublic WorkbasketQuery descending() throws InvalidRequestException
WorkbasketQuerydescending in interface WorkbasketQueryInvalidRequestException - when neither orderByKey() nor orderByName has already been called previously or when ascending() or
descending() has been called immediately before this callpublic WorkbasketQuery accessIdsHavePermission(WorkbasketAuthorization permission, String... accessIds) throws InvalidArgumentException
WorkbasketQueryaccessIdsHavePermission 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[] getNameIn()
public String[] getNameLike()
public String[] getKeyIn()
public String[] getKeyLike()
public String[] getKeyOrNameLike()
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 getDescriptionLike()
public String[] getOwner()
public String getOrderClause()
public long count()
throws NotAuthorizedException
BaseQuerycount in interface BaseQuery<WorkbasketSummary>NotAuthorizedException - when permissions not granted.Copyright © 2018. All rights reserved.