public class ConversationSearchQueryImpl extends Object implements ConversationSearchQuery
Modifier and Type | Field and Description |
---|---|
protected org.flowable.common.engine.impl.interceptor.CommandExecutor |
commandExecutor |
protected ConversationFilterServiceImpl |
conversationFilterService |
protected String |
filterId |
protected String |
query |
protected String |
tenantId |
protected String |
userDefinitionKey |
protected Collection<String> |
userGroups |
protected String |
userId |
Constructor and Description |
---|
ConversationSearchQueryImpl(ConversationFilterServiceImpl conversationFilterService,
org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
ConversationSearchQuery |
filterId(String filterId)
The key of the filter that should be used for doing the query.
|
String |
getFilterId() |
String |
getQuery() |
String |
getTenantId() |
String |
getUserDefinitionKey() |
Collection<String> |
getUserGroups() |
String |
getUserId() |
com.flowable.platform.common.Page<ConversationSearchResponse> |
list(int start,
int size)
Perform the query with the given paged parameters
|
ConversationSearchQuery |
searchQuery(String query)
The full text search query
|
ConversationSearchQuery |
tenantId(String tenantId)
Search all conversations for the given tenantId
|
ConversationSearchQuery |
userDefinitionKey(String userDefinitionKey)
The user definition key that should be used to lookup the filter.
|
ConversationSearchQuery |
userIdOrGroups(String userId,
Collection<String> userGroups)
Search all conversations for the given user or user groups
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
userId
protected final ConversationFilterServiceImpl conversationFilterService
protected final org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor
protected String userId
protected Collection<String> userGroups
protected String filterId
protected String userDefinitionKey
protected String query
protected String tenantId
public ConversationSearchQueryImpl(ConversationFilterServiceImpl conversationFilterService, org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor)
public ConversationSearchQuery userIdOrGroups(String userId, Collection<String> userGroups)
ConversationSearchQuery
userIdOrGroups
in interface ConversationSearchQuery
userId
- the id of the useruserGroups
- the user group idspublic ConversationSearchQuery tenantId(String tenantId)
ConversationSearchQuery
tenantId
in interface ConversationSearchQuery
public ConversationSearchQuery filterId(String filterId)
ConversationSearchQuery
filterId
in interface ConversationSearchQuery
filterId
- the filter keypublic ConversationSearchQuery userDefinitionKey(String userDefinitionKey)
ConversationSearchQuery
userDefinitionKey
in interface ConversationSearchQuery
userDefinitionKey
- the user definition key where the filter is registeredpublic ConversationSearchQuery searchQuery(String query)
ConversationSearchQuery
searchQuery
in interface ConversationSearchQuery
query
- the full text seach querypublic com.flowable.platform.common.Page<ConversationSearchResponse> list(int start, int size)
ConversationSearchQuery
list
in interface ConversationSearchQuery
start
- the start of the querysize
- the total number of records that should be returnedpublic String getUserId()
public Collection<String> getUserGroups()
public String getTenantId()
public String getFilterId()
public String getUserDefinitionKey()
public String getQuery()
Copyright © 2019. All rights reserved.