Class ConversationQueryImpl
java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.query.AbstractQuery<T,U>
org.flowable.variable.service.impl.AbstractVariableQueryImpl<ConversationQuery,Conversation>
com.flowable.engage.engine.impl.conversation.ConversationQueryImpl
- All Implemented Interfaces:
ConversationQuery,Serializable,CacheAwareQuery<ConversationEntity>,Query<ConversationQuery,,Conversation> Command<Object>
public class ConversationQueryImpl
extends AbstractVariableQueryImpl<ConversationQuery,Conversation>
implements ConversationQuery, CacheAwareQuery<ConversationEntity>
- Author:
- Filip Hrisafov, Joram Barrez
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultTypeNested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Collection<String>protected Stringprotected Stringprotected Dateprotected Dateprotected static final ListQueryParameterObject.OrderByprotected Stringprotected Stringprotected Collection<String>protected booleanprotected booleanprotected Dateprotected Dateprotected Stringprotected Stringprotected Stringprotected Collection<String>protected Stringprotected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Dateprotected Dateprotected Stringprotected Stringprotected Collection<String>protected Collection<String>protected booleanprotected booleanprotected booleanFields inherited from class org.flowable.variable.service.impl.AbstractVariableQueryImpl
queryVariableValues, variableValueProviderFields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutorFields inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
databaseType, defaultOrderBy, firstResult, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC -
Constructor Summary
ConstructorsConstructorDescriptionConversationQueryImpl(CommandExecutor commandExecutor, EngageEngineConfiguration engageEngineConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionaccessibleByParticipantOrGroups(String participantId, Collection<String> groups) protected ConversationQueryprotected ConversationQueryaddTagNotIn(String tagNotIn) conversationDefinitionId(String conversationDefinitionId) createdAfter(Date createdAfter) createdBefore(Date createdBefore) voidenhanceCachedValue(ConversationEntity conversation) longexecuteCount(CommandContext commandContext) executeList(CommandContext commandContext) externalId(String externalId) Select conversation with the given external id.getId()getIds()getName()intgetState()getTags()getType()intSelect a conversation with the given id.ids(Collection<String> ids) Select all conversations with the given ids.booleanisFalse()We can't usefalsein SQL in a DB agnostic way.booleanbooleanbooleanbooleanisTrue()We can't usetruein SQL in a DB agnostic way.booleanbooleanbooleanlastMessageAfter(Date lastMessageAfter) lastMessageBefore(Date lastMessageBefore) mutedByUser(String userId) Select conversations that have been muted by the given user.participantsOrOwner(Collection<String> participantsOrOwner) referenceDefinitionId(String referenceDefinitionId) referenceId(String referenceId) referenceType(String referenceType) starredByUser(String userId) Select conversations that have been starred by the given user.tags(Collection<String> tags) tagsNotIn(Collection<String> tagsNotIn) updateTimeAfter(Date updateTimeAfter) updateTimeBefore(Date updateTimeBefore) userAccountId(String userAccountId) userAccountSubType(String userAccountSubType) withAllParticipants(Collection<String> withAllParticipants) Conversations that contain exactly the givenwithAllParticipantscollection and nothing elsewithAnyParticipants(Collection<String> withAnyParticipants) Conversations that have at least one of the givenwithAnyParticipantscollection as participantMethods inherited from class org.flowable.variable.service.impl.AbstractVariableQueryImpl
addVariable, addVariable, ensureVariablesInitialized, getQueryVariableValues, hasLocalQueryVariableValue, hasNonLocalQueryVariableValue, hasValueComparisonQueryVariables, isBoolean, scopedVariableExists, scopedVariableNotExists, scopedVariableValueEquals, scopedVariableValueEquals, scopedVariableValueEqualsIgnoreCase, scopedVariableValueGreaterThan, scopedVariableValueGreaterThanOrEqual, scopedVariableValueLessThan, scopedVariableValueLessThanOrEqual, scopedVariableValueLike, scopedVariableValueLikeIgnoreCase, scopedVariableValueNotEquals, scopedVariableValueNotEqualsIgnoreCase, variableExists, variableExists, variableNotExists, variableNotExists, variableValueEquals, variableValueEquals, variableValueEquals, variableValueEquals, variableValueEqualsIgnoreCase, variableValueEqualsIgnoreCase, variableValueGreaterThan, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThan, variableValueLessThanOrEqual, variableValueLessThanOrEqual, variableValueLike, variableValueLike, variableValueLikeIgnoreCase, variableValueLikeIgnoreCase, variableValueNotEquals, variableValueNotEquals, variableValueNotEqualsIgnoreCase, variableValueNotEqualsIgnoreCaseMethods inherited from class org.flowable.common.engine.impl.query.AbstractQuery
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, list, listPage, orderBy, orderBy, setCommandExecutor, singleResultMethods inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
addOrder, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setParameterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.flowable.engage.conversation.api.ConversationQuery
accessibleByParticipant, variableValueEquals, variableValueEqualsIgnoreCase, variableValueLike, variableValueLikeIgnoreCase
-
Field Details
-
DEFAULT_ORDER_BY
-
id
-
ids
-
externalId
-
type
-
subType
-
name
-
conversationDefinitionId
-
referenceId
-
referenceType
-
referenceDefinitionId
-
ownerId
-
withAllParticipants
-
withAnyParticipants
-
participantsOrOwner
-
accessibleByParticipant
-
accessibleByGroups
-
lastMessageAfter
-
lastMessageBefore
-
userAccountId
-
userAccountSubType
-
updateTimeAfter
-
updateTimeBefore
-
createdBefore
-
createdAfter
-
tags
-
tagsNotIn
-
state
-
tenantId
-
withoutTenantId
protected boolean withoutTenantId -
withoutParent
protected boolean withoutParent -
withoutMessages
protected boolean withoutMessages -
starredByUser
-
mutedByUser
-
requiresIdentityLinks
protected boolean requiresIdentityLinks -
includeIdentityLinks
protected boolean includeIdentityLinks -
includeVariables
protected boolean includeVariables
-
-
Constructor Details
-
ConversationQueryImpl
public ConversationQueryImpl(CommandExecutor commandExecutor, EngageEngineConfiguration engageEngineConfiguration)
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceCacheAwareQuery<ConversationEntity>
-
id
Description copied from interface:ConversationQuerySelect a conversation with the given id.- Specified by:
idin interfaceConversationQuery
-
ids
Description copied from interface:ConversationQuerySelect all conversations with the given ids.- Specified by:
idsin interfaceConversationQuery
-
externalId
Description copied from interface:ConversationQuerySelect conversation with the given external id.- Specified by:
externalIdin interfaceConversationQuery
-
type
- Specified by:
typein interfaceConversationQuery
-
subType
- Specified by:
subTypein interfaceConversationQuery
-
name
- Specified by:
namein interfaceConversationQuery
-
conversationDefinitionId
- Specified by:
conversationDefinitionIdin interfaceConversationQuery
-
referenceId
- Specified by:
referenceIdin interfaceConversationQuery
-
referenceType
- Specified by:
referenceTypein interfaceConversationQuery
-
referenceDefinitionId
- Specified by:
referenceDefinitionIdin interfaceConversationQuery
-
ownerId
- Specified by:
ownerIdin interfaceConversationQuery
-
withAllParticipants
Description copied from interface:ConversationQueryConversations that contain exactly the givenwithAllParticipantscollection and nothing else- Specified by:
withAllParticipantsin interfaceConversationQuery
-
withAnyParticipants
Description copied from interface:ConversationQueryConversations that have at least one of the givenwithAnyParticipantscollection as participant- Specified by:
withAnyParticipantsin interfaceConversationQuery
-
participantsOrOwner
- Specified by:
participantsOrOwnerin interfaceConversationQuery
-
accessibleByParticipantOrGroups
public ConversationQuery accessibleByParticipantOrGroups(String participantId, Collection<String> groups) - Specified by:
accessibleByParticipantOrGroupsin interfaceConversationQuery
-
withoutParent
- Specified by:
withoutParentin interfaceConversationQuery
-
lastMessageAfter
- Specified by:
lastMessageAfterin interfaceConversationQuery
-
lastMessageBefore
- Specified by:
lastMessageBeforein interfaceConversationQuery
-
userAccountId
- Specified by:
userAccountIdin interfaceConversationQuery
-
userAccountSubType
- Specified by:
userAccountSubTypein interfaceConversationQuery
-
updateTimeAfter
- Specified by:
updateTimeAfterin interfaceConversationQuery
-
updateTimeBefore
- Specified by:
updateTimeBeforein interfaceConversationQuery
-
createdBefore
- Specified by:
createdBeforein interfaceConversationQuery
-
createdAfter
- Specified by:
createdAfterin interfaceConversationQuery
-
tagsNotIn
- Specified by:
tagsNotInin interfaceConversationQuery
-
tagsNotIn
- Specified by:
tagsNotInin interfaceConversationQuery
-
tagsNotIn
- Specified by:
tagsNotInin interfaceConversationQuery
-
tags
- Specified by:
tagsin interfaceConversationQuery
-
tags
- Specified by:
tagsin interfaceConversationQuery
-
tags
- Specified by:
tagsin interfaceConversationQuery
-
state
- Specified by:
statein interfaceConversationQuery
-
tenantId
- Specified by:
tenantIdin interfaceConversationQuery
-
withoutTenantId
- Specified by:
withoutTenantIdin interfaceConversationQuery
-
withoutMessages
- Specified by:
withoutMessagesin interfaceConversationQuery
-
starredByUser
Description copied from interface:ConversationQuerySelect conversations that have been starred by the given user.- Specified by:
starredByUserin interfaceConversationQuery
-
mutedByUser
Description copied from interface:ConversationQuerySelect conversations that have been muted by the given user.- Specified by:
mutedByUserin interfaceConversationQuery
-
addTag
-
addTagNotIn
-
includeIdentityLinks
- Specified by:
includeIdentityLinksin interfaceConversationQuery
-
includeVariables
- Specified by:
includeVariablesin interfaceConversationQuery
-
executeCount
- Specified by:
executeCountin classAbstractVariableQueryImpl<ConversationQuery,Conversation>
-
executeList
- Specified by:
executeListin classAbstractVariableQueryImpl<ConversationQuery,Conversation>
-
enhanceCachedValue
- Specified by:
enhanceCachedValuein interfaceCacheAwareQuery<ConversationEntity>
-
isFalse
public boolean isFalse()We can't usefalsein SQL in a DB agnostic way. Therefore this method that always returnsfalse- Returns:
false
-
isTrue
public boolean isTrue()We can't usetruein SQL in a DB agnostic way. Therefore this method that always returnstrue- Returns:
true
-
getIds
-
getExternalId
-
getType
-
getSubType
-
getName
-
getConversationDefinitionId
-
getReferenceId
-
getReferenceType
-
getReferenceDefinitionId
-
getCreatedBefore
-
getCreatedAfter
-
getTenantId
-
isWithoutTenantId
public boolean isWithoutTenantId() -
getOwnerId
-
getWithAllParticipants
-
getWithAllParticipantsSize
public int getWithAllParticipantsSize() -
getWithAnyParticipants
-
getParticipantsOrOwner
-
getParticipantsOrOwnerSize
public int getParticipantsOrOwnerSize() -
getAccessibleByParticipant
-
getAccessibleByGroups
-
isWithoutParent
public boolean isWithoutParent() -
isRequiresIdentityLinks
public boolean isRequiresIdentityLinks() -
isWithoutMessages
public boolean isWithoutMessages() -
getStarredByUser
-
getMutedByUser
-
getLastMessageAfter
-
getLastMessageBefore
-
getUserAccountId
-
getUserAccountSubType
-
getUpdateTimeAfter
-
getUpdateTimeBefore
-
getTags
-
getTagsNotIn
-
getState
-
isIncludeIdentityLinks
public boolean isIncludeIdentityLinks() -
isIncludeVariables
public boolean isIncludeVariables() -
orderByLastMessageTime
- Specified by:
orderByLastMessageTimein interfaceConversationQuery
-