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 CommandExecutorcommandExecutorprotected ConversationFilterServiceImplconversationFilterServiceprotected StringfilterIdprotected Stringqueryprotected StringtenantIdprotected StringuserDefinitionKeyprotected Collection<String>userGroupsprotected StringuserId
-
Constructor Summary
Constructors Constructor Description ConversationSearchQueryImpl(ConversationFilterServiceImpl conversationFilterService, CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConversationSearchQueryfilterId(String filterId)The key of the filter that should be used for doing the query.StringgetFilterId()StringgetQuery()StringgetTenantId()StringgetUserDefinitionKey()Collection<String>getUserGroups()StringgetUserId()Page<ConversationSearchResponse>list(int start, int size)Perform the query with the given paged parametersConversationSearchQuerysearchQuery(String query)The full text search queryConversationSearchQuerytenantId(String tenantId)Search all conversations for the given tenantIdConversationSearchQueryuserDefinitionKey(String userDefinitionKey)The user definition key that should be used to lookup the filter.ConversationSearchQueryuserIdOrGroups(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:ConversationSearchQuerySearch all conversations for the given user or user groups- Specified by:
userIdOrGroupsin interfaceConversationSearchQuery- Parameters:
userId- the id of the useruserGroups- the user group ids
-
tenantId
public ConversationSearchQuery tenantId(String tenantId)
Description copied from interface:ConversationSearchQuerySearch all conversations for the given tenantId- Specified by:
tenantIdin interfaceConversationSearchQuery
-
filterId
public ConversationSearchQuery filterId(String filterId)
Description copied from interface:ConversationSearchQueryThe key of the filter that should be used for doing the query.- Specified by:
filterIdin interfaceConversationSearchQuery- Parameters:
filterId- the filter key
-
userDefinitionKey
public ConversationSearchQuery userDefinitionKey(String userDefinitionKey)
Description copied from interface:ConversationSearchQueryThe user definition key that should be used to lookup the filter.- Specified by:
userDefinitionKeyin interfaceConversationSearchQuery- Parameters:
userDefinitionKey- the user definition key where the filter is registered
-
searchQuery
public ConversationSearchQuery searchQuery(String query)
Description copied from interface:ConversationSearchQueryThe full text search query- Specified by:
searchQueryin interfaceConversationSearchQuery- Parameters:
query- the full text seach query
-
list
public Page<ConversationSearchResponse> list(int start, int size)
Description copied from interface:ConversationSearchQueryPerform the query with the given paged parameters- Specified by:
listin 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()
-
-