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.ResultType
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Collection<String>
protected String
protected String
protected Date
protected Date
protected static final ListQueryParameterObject.OrderBy
protected String
protected String
protected Collection<String>
protected boolean
protected boolean
protected Date
protected Date
protected String
protected String
protected String
protected Collection<String>
protected String
protected String
protected String
protected boolean
protected String
protected String
protected String
protected String
protected String
protected Date
protected Date
protected String
protected String
protected Collection<String>
protected Collection<String>
protected boolean
protected boolean
protected boolean
Fields inherited from class org.flowable.variable.service.impl.AbstractVariableQueryImpl
queryVariableValues, variableValueProvider
Fields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutor
Fields 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 ConversationQuery
protected ConversationQuery
addTagNotIn
(String tagNotIn) conversationDefinitionId
(String conversationDefinitionId) createdAfter
(Date createdAfter) createdBefore
(Date createdBefore) void
enhanceCachedValue
(ConversationEntity conversation) long
executeCount
(CommandContext commandContext) executeList
(CommandContext commandContext) externalId
(String externalId) Select conversation with the given external id.getId()
getIds()
getName()
int
getState()
getTags()
getType()
int
Select a conversation with the given id.ids
(Collection<String> ids) Select all conversations with the given ids.boolean
isFalse()
We can't usefalse
in SQL in a DB agnostic way.boolean
boolean
boolean
boolean
isTrue()
We can't usetrue
in SQL in a DB agnostic way.boolean
boolean
boolean
lastMessageAfter
(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 givenwithAllParticipants
collection and nothing elsewithAnyParticipants
(Collection<String> withAnyParticipants) Conversations that have at least one of the givenwithAnyParticipants
collection 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, variableValueNotEqualsIgnoreCase
Methods inherited from class org.flowable.common.engine.impl.query.AbstractQuery
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, list, listPage, orderBy, orderBy, setCommandExecutor, singleResult
Methods 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, setParameter
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.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:
getId
in interfaceCacheAwareQuery<ConversationEntity>
-
id
Description copied from interface:ConversationQuery
Select a conversation with the given id.- Specified by:
id
in interfaceConversationQuery
-
ids
Description copied from interface:ConversationQuery
Select all conversations with the given ids.- Specified by:
ids
in interfaceConversationQuery
-
externalId
Description copied from interface:ConversationQuery
Select conversation with the given external id.- Specified by:
externalId
in interfaceConversationQuery
-
type
- Specified by:
type
in interfaceConversationQuery
-
subType
- Specified by:
subType
in interfaceConversationQuery
-
name
- Specified by:
name
in interfaceConversationQuery
-
conversationDefinitionId
- Specified by:
conversationDefinitionId
in interfaceConversationQuery
-
referenceId
- Specified by:
referenceId
in interfaceConversationQuery
-
referenceType
- Specified by:
referenceType
in interfaceConversationQuery
-
referenceDefinitionId
- Specified by:
referenceDefinitionId
in interfaceConversationQuery
-
ownerId
- Specified by:
ownerId
in interfaceConversationQuery
-
withAllParticipants
Description copied from interface:ConversationQuery
Conversations that contain exactly the givenwithAllParticipants
collection and nothing else- Specified by:
withAllParticipants
in interfaceConversationQuery
-
withAnyParticipants
Description copied from interface:ConversationQuery
Conversations that have at least one of the givenwithAnyParticipants
collection as participant- Specified by:
withAnyParticipants
in interfaceConversationQuery
-
participantsOrOwner
- Specified by:
participantsOrOwner
in interfaceConversationQuery
-
accessibleByParticipantOrGroups
public ConversationQuery accessibleByParticipantOrGroups(String participantId, Collection<String> groups) - Specified by:
accessibleByParticipantOrGroups
in interfaceConversationQuery
-
withoutParent
- Specified by:
withoutParent
in interfaceConversationQuery
-
lastMessageAfter
- Specified by:
lastMessageAfter
in interfaceConversationQuery
-
lastMessageBefore
- Specified by:
lastMessageBefore
in interfaceConversationQuery
-
userAccountId
- Specified by:
userAccountId
in interfaceConversationQuery
-
userAccountSubType
- Specified by:
userAccountSubType
in interfaceConversationQuery
-
updateTimeAfter
- Specified by:
updateTimeAfter
in interfaceConversationQuery
-
updateTimeBefore
- Specified by:
updateTimeBefore
in interfaceConversationQuery
-
createdBefore
- Specified by:
createdBefore
in interfaceConversationQuery
-
createdAfter
- Specified by:
createdAfter
in interfaceConversationQuery
-
tagsNotIn
- Specified by:
tagsNotIn
in interfaceConversationQuery
-
tagsNotIn
- Specified by:
tagsNotIn
in interfaceConversationQuery
-
tagsNotIn
- Specified by:
tagsNotIn
in interfaceConversationQuery
-
tags
- Specified by:
tags
in interfaceConversationQuery
-
tags
- Specified by:
tags
in interfaceConversationQuery
-
tags
- Specified by:
tags
in interfaceConversationQuery
-
state
- Specified by:
state
in interfaceConversationQuery
-
tenantId
- Specified by:
tenantId
in interfaceConversationQuery
-
withoutTenantId
- Specified by:
withoutTenantId
in interfaceConversationQuery
-
withoutMessages
- Specified by:
withoutMessages
in interfaceConversationQuery
-
starredByUser
Description copied from interface:ConversationQuery
Select conversations that have been starred by the given user.- Specified by:
starredByUser
in interfaceConversationQuery
-
mutedByUser
Description copied from interface:ConversationQuery
Select conversations that have been muted by the given user.- Specified by:
mutedByUser
in interfaceConversationQuery
-
addTag
-
addTagNotIn
-
includeIdentityLinks
- Specified by:
includeIdentityLinks
in interfaceConversationQuery
-
includeVariables
- Specified by:
includeVariables
in interfaceConversationQuery
-
executeCount
- Specified by:
executeCount
in classAbstractVariableQueryImpl<ConversationQuery,
Conversation>
-
executeList
- Specified by:
executeList
in classAbstractVariableQueryImpl<ConversationQuery,
Conversation>
-
enhanceCachedValue
- Specified by:
enhanceCachedValue
in interfaceCacheAwareQuery<ConversationEntity>
-
isFalse
public boolean isFalse()We can't usefalse
in SQL in a DB agnostic way. Therefore this method that always returnsfalse
- Returns:
false
-
isTrue
public boolean isTrue()We can't usetrue
in 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:
orderByLastMessageTime
in interfaceConversationQuery
-