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
,java.io.Serializable
,org.flowable.common.engine.api.query.CacheAwareQuery<ConversationEntity>
,org.flowable.common.engine.api.query.Query<ConversationQuery,Conversation>
,org.flowable.common.engine.impl.interceptor.Command<java.lang.Object>
public class ConversationQueryImpl extends org.flowable.variable.service.impl.AbstractVariableQueryImpl<ConversationQuery,Conversation> implements ConversationQuery, org.flowable.common.engine.api.query.CacheAwareQuery<ConversationEntity>
- Author:
- Filip Hrisafov, Joram Barrez
- See Also:
- Serialized Form
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Collection<java.lang.String>
accessibleByGroups
protected java.lang.String
accessibleByParticipant
protected java.lang.String
conversationDefinitionId
protected java.util.Date
createdAfter
protected java.util.Date
createdBefore
protected java.lang.String
externalId
protected java.lang.String
id
protected boolean
includeIdentityLinks
protected boolean
includeVariables
protected java.util.Date
lastMessageAfter
protected java.util.Date
lastMessageBefore
protected java.lang.String
name
protected java.lang.String
ownerId
protected java.util.Collection<java.lang.String>
participantsOrOwner
protected java.lang.String
referenceDefinitionId
protected java.lang.String
referenceId
protected java.lang.String
referenceType
protected boolean
requiresIdentityLinks
protected java.lang.String
state
protected java.lang.String
subType
protected java.util.List<java.lang.String>
tags
protected java.util.List<java.lang.String>
tagsNotIn
protected java.lang.String
tenantId
protected java.lang.String
type
protected java.util.Date
updateTimeAfter
protected java.util.Date
updateTimeBefore
protected java.lang.String
userAccountId
protected java.lang.String
userAccountSubType
protected java.util.Collection<java.lang.String>
withAllParticipants
protected java.util.Collection<java.lang.String>
withAnyParticipants
protected boolean
withoutMessages
protected boolean
withoutParent
protected boolean
withoutTenantId
Fields inherited from class org.flowable.variable.service.impl.AbstractVariableQueryImpl
queryVariableValues, variableServiceConfiguration
-
Constructor Summary
Constructors Constructor Description ConversationQueryImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor, EngageEngineConfiguration engageEngineConfiguration)
-
Method Summary
Modifier and Type Method Description ConversationQuery
accessibleByParticipantOrGroups(java.lang.String participantId, java.util.Collection<java.lang.String> groups)
protected ConversationQuery
addTag(java.lang.String tag)
protected ConversationQuery
addTagNotIn(java.lang.String tagNotIn)
ConversationQuery
conversationDefinitionId(java.lang.String conversationDefinitionId)
ConversationQuery
createdAfter(java.util.Date createdAfter)
ConversationQuery
createdBefore(java.util.Date createdBefore)
void
enhanceCachedValue(ConversationEntity conversation)
long
executeCount(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
java.util.List<Conversation>
executeList(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
ConversationQuery
externalId(java.lang.String externalId)
Select conversation with the given external id.java.util.Collection<java.lang.String>
getAccessibleByGroups()
java.lang.String
getAccessibleByParticipant()
java.lang.String
getConversationDefinitionId()
java.util.Date
getCreatedAfter()
java.util.Date
getCreatedBefore()
java.lang.String
getExternalId()
java.lang.String
getId()
java.util.Date
getLastMessageAfter()
java.util.Date
getLastMessageBefore()
java.lang.String
getName()
java.lang.String
getOrderByColumns()
java.lang.String
getOwnerId()
java.util.Collection<java.lang.String>
getParticipantsOrOwner()
int
getParticipantsOrOwnerSize()
java.lang.String
getReferenceDefinitionId()
java.lang.String
getReferenceId()
java.lang.String
getReferenceType()
java.lang.String
getState()
java.lang.String
getSubType()
java.util.List<java.lang.String>
getTags()
java.util.List<java.lang.String>
getTagsNotIn()
java.lang.String
getTenantId()
java.lang.String
getType()
java.util.Date
getUpdateTimeAfter()
java.util.Date
getUpdateTimeBefore()
java.lang.String
getUserAccountId()
java.lang.String
getUserAccountSubType()
java.util.Collection<java.lang.String>
getWithAllParticipants()
int
getWithAllParticipantsSize()
java.util.Collection<java.lang.String>
getWithAnyParticipants()
ConversationQuery
id(java.lang.String id)
Select a conversation with the given id.ConversationQuery
includeIdentityLinks()
ConversationQuery
includeVariables()
boolean
isFalse()
We can't usefalse
in SQL in a DB agnostic way.boolean
isIncludeIdentityLinks()
boolean
isIncludeVariables()
boolean
isRequiresIdentityLinks()
boolean
isTrue()
We can't usetrue
in SQL in a DB agnostic way.boolean
isWithoutMessages()
boolean
isWithoutParent()
boolean
isWithoutTenantId()
ConversationQuery
lastMessageAfter(java.util.Date lastMessageAfter)
ConversationQuery
lastMessageBefore(java.util.Date lastMessageBefore)
ConversationQuery
name(java.lang.String name)
ConversationQuery
orderByLastMessageTime()
ConversationQuery
ownerId(java.lang.String ownerId)
ConversationQuery
participantsOrOwner(java.util.Collection<java.lang.String> participantsOrOwner)
ConversationQuery
referenceDefinitionId(java.lang.String referenceDefinitionId)
ConversationQuery
referenceId(java.lang.String referenceId)
ConversationQuery
referenceType(java.lang.String referenceType)
ConversationQuery
state(java.lang.String state)
ConversationQuery
subType(java.lang.String subType)
ConversationQuery
tags(java.lang.String tag)
ConversationQuery
tags(java.lang.String tag, java.lang.String... tags)
ConversationQuery
tags(java.util.Collection<java.lang.String> tags)
ConversationQuery
tagsNotIn(java.lang.String tagNotIn)
ConversationQuery
tagsNotIn(java.lang.String tagNotIn, java.lang.String... tagsNotIn)
ConversationQuery
tagsNotIn(java.util.Collection<java.lang.String> tagsNotIn)
ConversationQuery
tenantId(java.lang.String tenantId)
ConversationQuery
type(java.lang.String type)
ConversationQuery
updateTimeAfter(java.util.Date updateTimeAfter)
ConversationQuery
updateTimeBefore(java.util.Date updateTimeBefore)
ConversationQuery
userAccountId(java.lang.String userAccountId)
ConversationQuery
userAccountSubType(java.lang.String userAccountSubType)
ConversationQuery
withAllParticipants(java.util.Collection<java.lang.String> withAllParticipants)
Conversations that contain exactly the givenwithAllParticipants
collection and nothing elseConversationQuery
withAnyParticipants(java.util.Collection<java.lang.String> withAnyParticipants)
Conversations that have at least one of the givenwithAnyParticipants
collection as participantConversationQuery
withoutMessages()
ConversationQuery
withoutParent()
ConversationQuery
withoutTenantId()
Methods inherited from class org.flowable.variable.service.impl.AbstractVariableQueryImpl
addVariable, ensureVariablesInitialized, getQueryVariableValues, hasLocalQueryVariableValue, hasNonLocalQueryVariableValue, hasValueComparisonQueryVariables, isBoolean, 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, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByColumnMap, getParameter, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setOrderByColumns, 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
-
id
protected java.lang.String id -
externalId
protected java.lang.String externalId -
type
protected java.lang.String type -
subType
protected java.lang.String subType -
name
protected java.lang.String name -
conversationDefinitionId
protected java.lang.String conversationDefinitionId -
referenceId
protected java.lang.String referenceId -
referenceType
protected java.lang.String referenceType -
referenceDefinitionId
protected java.lang.String referenceDefinitionId -
ownerId
protected java.lang.String ownerId -
withAllParticipants
protected java.util.Collection<java.lang.String> withAllParticipants -
withAnyParticipants
protected java.util.Collection<java.lang.String> withAnyParticipants -
participantsOrOwner
protected java.util.Collection<java.lang.String> participantsOrOwner -
accessibleByParticipant
protected java.lang.String accessibleByParticipant -
accessibleByGroups
protected java.util.Collection<java.lang.String> accessibleByGroups -
lastMessageAfter
protected java.util.Date lastMessageAfter -
lastMessageBefore
protected java.util.Date lastMessageBefore -
userAccountId
protected java.lang.String userAccountId -
userAccountSubType
protected java.lang.String userAccountSubType -
updateTimeAfter
protected java.util.Date updateTimeAfter -
updateTimeBefore
protected java.util.Date updateTimeBefore -
createdBefore
protected java.util.Date createdBefore -
createdAfter
protected java.util.Date createdAfter -
tags
protected java.util.List<java.lang.String> tags -
tagsNotIn
protected java.util.List<java.lang.String> tagsNotIn -
state
protected java.lang.String state -
tenantId
protected java.lang.String tenantId -
withoutTenantId
protected boolean withoutTenantId -
withoutParent
protected boolean withoutParent -
withoutMessages
protected boolean withoutMessages -
requiresIdentityLinks
protected boolean requiresIdentityLinks -
includeIdentityLinks
protected boolean includeIdentityLinks -
includeVariables
protected boolean includeVariables
-
-
Constructor Details
-
ConversationQueryImpl
public ConversationQueryImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor, EngageEngineConfiguration engageEngineConfiguration)
-
-
Method Details
-
getId
public java.lang.String getId()- Specified by:
getId
in interfaceorg.flowable.common.engine.api.query.CacheAwareQuery<ConversationEntity>
-
id
Description copied from interface:ConversationQuery
Select a conversation with the given id.- Specified by:
id
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
public ConversationQuery withAllParticipants(java.util.Collection<java.lang.String> withAllParticipants)Description copied from interface:ConversationQuery
Conversations that contain exactly the givenwithAllParticipants
collection and nothing else- Specified by:
withAllParticipants
in interfaceConversationQuery
-
withAnyParticipants
public ConversationQuery withAnyParticipants(java.util.Collection<java.lang.String> withAnyParticipants)Description copied from interface:ConversationQuery
Conversations that have at least one of the givenwithAnyParticipants
collection as participant- Specified by:
withAnyParticipants
in interfaceConversationQuery
-
participantsOrOwner
public ConversationQuery participantsOrOwner(java.util.Collection<java.lang.String> participantsOrOwner)- Specified by:
participantsOrOwner
in interfaceConversationQuery
-
accessibleByParticipantOrGroups
public ConversationQuery accessibleByParticipantOrGroups(java.lang.String participantId, java.util.Collection<java.lang.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
-
addTag
-
addTagNotIn
-
includeIdentityLinks
- Specified by:
includeIdentityLinks
in interfaceConversationQuery
-
includeVariables
- Specified by:
includeVariables
in interfaceConversationQuery
-
executeCount
public long executeCount(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)- Specified by:
executeCount
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<ConversationQuery,Conversation>
-
executeList
public java.util.List<Conversation> executeList(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)- Specified by:
executeList
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<ConversationQuery,Conversation>
-
enhanceCachedValue
- Specified by:
enhanceCachedValue
in interfaceorg.flowable.common.engine.api.query.CacheAwareQuery<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
-
getExternalId
public java.lang.String getExternalId() -
getType
public java.lang.String getType() -
getSubType
public java.lang.String getSubType() -
getName
public java.lang.String getName() -
getConversationDefinitionId
public java.lang.String getConversationDefinitionId() -
getReferenceId
public java.lang.String getReferenceId() -
getReferenceType
public java.lang.String getReferenceType() -
getReferenceDefinitionId
public java.lang.String getReferenceDefinitionId() -
getCreatedBefore
public java.util.Date getCreatedBefore() -
getCreatedAfter
public java.util.Date getCreatedAfter() -
getTenantId
public java.lang.String getTenantId() -
isWithoutTenantId
public boolean isWithoutTenantId() -
getOwnerId
public java.lang.String getOwnerId() -
getWithAllParticipants
public java.util.Collection<java.lang.String> getWithAllParticipants() -
getWithAllParticipantsSize
public int getWithAllParticipantsSize() -
getWithAnyParticipants
public java.util.Collection<java.lang.String> getWithAnyParticipants() -
getParticipantsOrOwner
public java.util.Collection<java.lang.String> getParticipantsOrOwner() -
getParticipantsOrOwnerSize
public int getParticipantsOrOwnerSize() -
getAccessibleByParticipant
public java.lang.String getAccessibleByParticipant() -
getAccessibleByGroups
public java.util.Collection<java.lang.String> getAccessibleByGroups() -
isWithoutParent
public boolean isWithoutParent() -
isRequiresIdentityLinks
public boolean isRequiresIdentityLinks() -
isWithoutMessages
public boolean isWithoutMessages() -
getLastMessageAfter
public java.util.Date getLastMessageAfter() -
getLastMessageBefore
public java.util.Date getLastMessageBefore() -
getUserAccountId
public java.lang.String getUserAccountId() -
getUserAccountSubType
public java.lang.String getUserAccountSubType() -
getUpdateTimeAfter
public java.util.Date getUpdateTimeAfter() -
getUpdateTimeBefore
public java.util.Date getUpdateTimeBefore() -
getTags
public java.util.List<java.lang.String> getTags() -
getTagsNotIn
public java.util.List<java.lang.String> getTagsNotIn() -
getState
public java.lang.String getState() -
isIncludeIdentityLinks
public boolean isIncludeIdentityLinks() -
isIncludeVariables
public boolean isIncludeVariables() -
getOrderByColumns
public java.lang.String getOrderByColumns()- Overrides:
getOrderByColumns
in classorg.flowable.common.engine.impl.db.ListQueryParameterObject
-
orderByLastMessageTime
- Specified by:
orderByLastMessageTime
in interfaceConversationQuery
-