Class ConversationSearchQueryImpl
- java.lang.Object
-
- com.flowable.engage.engine.impl.indexing.ConversationSearchQueryImpl
-
- All Implemented Interfaces:
ConversationSearchQuery
public class ConversationSearchQueryImpl extends Object implements ConversationSearchQuery
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected 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 Summary
Constructors Constructor Description ConversationSearchQueryImpl(ConversationFilterServiceImpl conversationFilterService, CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
Page<ConversationSearchResponse>
list(int start, int size)
Perform the query with the given paged parametersConversationSearchQuery
searchQuery(String query)
The full text search queryConversationSearchQuery
tenantId(String tenantId)
Search all conversations for the given tenantIdConversationSearchQuery
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-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.flowable.engage.engine.impl.indexing.ConversationSearchQuery
userId
-
-
-
-
Field Detail
-
conversationFilterService
protected final ConversationFilterServiceImpl conversationFilterService
-
commandExecutor
protected final CommandExecutor commandExecutor
-
userId
protected String userId
-
userGroups
protected Collection<String> userGroups
-
filterId
protected String filterId
-
userDefinitionKey
protected String userDefinitionKey
-
query
protected String query
-
tenantId
protected String tenantId
-
-
Constructor Detail
-
ConversationSearchQueryImpl
public ConversationSearchQueryImpl(ConversationFilterServiceImpl conversationFilterService, CommandExecutor commandExecutor)
-
-
Method Detail
-
userIdOrGroups
public ConversationSearchQuery userIdOrGroups(String userId, Collection<String> userGroups)
Description copied from interface:ConversationSearchQuery
Search all conversations for the given user or user groups- Specified by:
userIdOrGroups
in interfaceConversationSearchQuery
- Parameters:
userId
- the id of the useruserGroups
- the user group ids
-
tenantId
public ConversationSearchQuery tenantId(String tenantId)
Description copied from interface:ConversationSearchQuery
Search all conversations for the given tenantId- Specified by:
tenantId
in interfaceConversationSearchQuery
-
filterId
public ConversationSearchQuery filterId(String filterId)
Description copied from interface:ConversationSearchQuery
The key of the filter that should be used for doing the query.- Specified by:
filterId
in interfaceConversationSearchQuery
- Parameters:
filterId
- the filter key
-
userDefinitionKey
public ConversationSearchQuery userDefinitionKey(String userDefinitionKey)
Description copied from interface:ConversationSearchQuery
The user definition key that should be used to lookup the filter.- Specified by:
userDefinitionKey
in interfaceConversationSearchQuery
- Parameters:
userDefinitionKey
- the user definition key where the filter is registered
-
searchQuery
public ConversationSearchQuery searchQuery(String query)
Description copied from interface:ConversationSearchQuery
The full text search query- Specified by:
searchQuery
in interfaceConversationSearchQuery
- Parameters:
query
- the full text seach query
-
list
public Page<ConversationSearchResponse> list(int start, int size)
Description copied from interface:ConversationSearchQuery
Perform the query with the given paged parameters- Specified by:
list
in interfaceConversationSearchQuery
- Parameters:
start
- the start of the querysize
- the total number of records that should be returned
-
getUserId
public String getUserId()
-
getUserGroups
public Collection<String> getUserGroups()
-
getTenantId
public String getTenantId()
-
getFilterId
public String getFilterId()
-
getUserDefinitionKey
public String getUserDefinitionKey()
-
getQuery
public String getQuery()
-
-