public class WorkbasketQueryImpl extends Object implements WorkbasketQuery
| Constructor and Description |
|---|
WorkbasketQueryImpl(TaskanaEngine taskanaEngine) |
| Modifier and Type | Method and Description |
|---|---|
WorkbasketQuery |
access(WorkbasketAuthorization permission,
String... accessIds)
Add the access requested.
|
WorkbasketQuery |
createdAfter(Date createdAfter)
Add your createdAfter-Date to your query.
|
WorkbasketQuery |
createdBefore(Date 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() |
Date |
getCreatedAfter() |
Date |
getCreatedBefore() |
String |
getDescription() |
String[] |
getDomain() |
String[] |
getKey() |
Date |
getModifiedAfter() |
Date |
getModifiedBefore() |
String[] |
getName() |
String[] |
getOwner() |
WorkbasketType[] |
getType() |
WorkbasketQuery |
keyIn(String... key)
Add your keys to your query.
|
List<Workbasket> |
list()
This method will return a list of defined
T objects. |
List<Workbasket> |
list(int offset,
int limit)
This method will return a list of defined
T objects with specified
offset and an limit. |
WorkbasketQuery |
modifiedAfter(Date modifiedAfter)
Add your modifiedAfter-Date to your query.
|
WorkbasketQuery |
modifiedBefore(Date 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.
|
void |
setAccessId(String[] accessId) |
void |
setAuthorization(WorkbasketAuthorization authorization) |
void |
setCreatedAfter(Date createdAfter) |
void |
setCreatedBefore(Date createdBefore) |
void |
setDescription(String description) |
void |
setDomain(String[] domain) |
void |
setKey(String[] key) |
void |
setModifiedAfter(Date modifiedAfter) |
void |
setModifiedBefore(Date modifiedBefore) |
void |
setName(String[] name) |
void |
setOwner(String[] owner) |
void |
setType(WorkbasketType[] type) |
Workbasket |
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 createdAfter(Date createdAfter)
WorkbasketQuerycreatedAfter in interface WorkbasketQuerycreatedAfter - the date after which the searched Workbaskets are createdpublic WorkbasketQuery createdBefore(Date createdBefore)
WorkbasketQuerycreatedBefore in interface WorkbasketQuerycreatedBefore - the date before which the searched Workbaskets are createdpublic WorkbasketQuery modifiedAfter(Date modifiedAfter)
WorkbasketQuerymodifiedAfter in interface WorkbasketQuerymodifiedAfter - the date after which the searched Workbaskets are modifiedpublic WorkbasketQuery modifiedBefore(Date modifiedBefore)
WorkbasketQuerymodifiedBefore in interface WorkbasketQuerymodifiedBefore - the date before which the searched Workbaskets are modifiedpublic WorkbasketQuery descriptionLike(String description)
WorkbasketQuerydescriptionLike in interface WorkbasketQuerydescription - your descriptionpublic WorkbasketQuery ownerIn(String... owners)
WorkbasketQueryownerIn in interface WorkbasketQueryowners - the owners as Stringpublic WorkbasketQuery access(WorkbasketAuthorization permission, String... accessIds) throws InvalidArgumentException
WorkbasketQueryaccess in interface WorkbasketQuerypermission - the permissions requestedaccessIds - the accessIds as StringInvalidArgumentException - if any argument is not specifiedpublic List<Workbasket> list() throws NotAuthorizedException
BaseQueryT objects.list in interface BaseQuery<Workbasket>NotAuthorizedException - TODOpublic List<Workbasket> list(int offset, int limit) throws NotAuthorizedException
BaseQueryT objects with specified
offset and an limit.list in interface BaseQuery<Workbasket>offset - TODOlimit - TODONotAuthorizedException - TODOpublic Workbasket single() throws NotAuthorizedException
BaseQueryT.single in interface BaseQuery<Workbasket>NotAuthorizedException - TODOpublic String[] getAccessId()
public void setAccessId(String[] accessId)
public WorkbasketAuthorization getAuthorization()
public void setAuthorization(WorkbasketAuthorization authorization)
public String[] getName()
public void setName(String[] name)
public String[] getKey()
public void setKey(String[] key)
public String[] getDomain()
public void setDomain(String[] domain)
public WorkbasketType[] getType()
public void setType(WorkbasketType[] type)
public Date getCreatedAfter()
public void setCreatedAfter(Date createdAfter)
public Date getCreatedBefore()
public void setCreatedBefore(Date createdBefore)
public Date getModifiedAfter()
public void setModifiedAfter(Date modifiedAfter)
public Date getModifiedBefore()
public void setModifiedBefore(Date modifiedBefore)
public String getDescription()
public void setDescription(String description)
public String[] getOwner()
public void setOwner(String[] owner)
Copyright © 2017. All rights reserved.