Class ConversationSearchQueryImpl
java.lang.Object
com.flowable.engage.engine.impl.indexing.ConversationSearchQueryImpl
- All Implemented Interfaces:
ConversationSearchQuery
public class ConversationSearchQueryImpl extends java.lang.Object implements ConversationSearchQuery
- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected org.flowable.common.engine.impl.interceptor.CommandExecutor
commandExecutor
protected ConversationFilterServiceImpl
conversationFilterService
protected java.lang.String
filterId
protected java.lang.String
query
protected java.lang.String
tenantId
protected java.lang.String
userDefinitionKey
protected java.util.Collection<java.lang.String>
userGroups
protected java.lang.String
userId
-
Constructor Summary
Constructors Constructor Description ConversationSearchQueryImpl(ConversationFilterServiceImpl conversationFilterService, org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor)
-
Method Summary
Modifier and Type Method Description ConversationSearchQuery
filterId(java.lang.String filterId)
The key of the filter that should be used for doing the query.java.lang.String
getFilterId()
java.lang.String
getQuery()
java.lang.String
getTenantId()
java.lang.String
getUserDefinitionKey()
java.util.Collection<java.lang.String>
getUserGroups()
java.lang.String
getUserId()
com.flowable.platform.common.Page<ConversationSearchResponse>
list(int start, int size)
Perform the query with the given paged parametersConversationSearchQuery
searchQuery(java.lang.String query)
The full text search queryConversationSearchQuery
tenantId(java.lang.String tenantId)
Search all conversations for the given tenantIdConversationSearchQuery
userDefinitionKey(java.lang.String userDefinitionKey)
The user definition key that should be used to lookup the filter.ConversationSearchQuery
userIdOrGroups(java.lang.String userId, java.util.Collection<java.lang.String> userGroups)
Search all conversations for the given user or user groupsMethods 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 Details
-
conversationFilterService
-
commandExecutor
protected final org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor -
userId
protected java.lang.String userId -
userGroups
protected java.util.Collection<java.lang.String> userGroups -
filterId
protected java.lang.String filterId -
userDefinitionKey
protected java.lang.String userDefinitionKey -
query
protected java.lang.String query -
tenantId
protected java.lang.String tenantId
-
-
Constructor Details
-
ConversationSearchQueryImpl
public ConversationSearchQueryImpl(ConversationFilterServiceImpl conversationFilterService, org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor)
-
-
Method Details
-
userIdOrGroups
public ConversationSearchQuery userIdOrGroups(java.lang.String userId, java.util.Collection<java.lang.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
Description copied from interface:ConversationSearchQuery
Search all conversations for the given tenantId- Specified by:
tenantId
in interfaceConversationSearchQuery
-
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
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
Description copied from interface:ConversationSearchQuery
The full text search query- Specified by:
searchQuery
in interfaceConversationSearchQuery
- Parameters:
query
- the full text seach query
-
list
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 java.lang.String getUserId() -
getUserGroups
public java.util.Collection<java.lang.String> getUserGroups() -
getTenantId
public java.lang.String getTenantId() -
getFilterId
public java.lang.String getFilterId() -
getUserDefinitionKey
public java.lang.String getUserDefinitionKey() -
getQuery
public java.lang.String getQuery()
-