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:
- Serialized Form
-
-
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
-
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
Constructors Constructor Description ConversationQueryImpl(CommandExecutor commandExecutor, EngageEngineConfiguration engageEngineConfiguration)
-
Method Summary
-
Methods 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 Detail
-
DEFAULT_ORDER_BY
protected static final ListQueryParameterObject.OrderBy DEFAULT_ORDER_BY
-
id
protected String id
-
externalId
protected String externalId
-
type
protected String type
-
subType
protected String subType
-
name
protected String name
-
conversationDefinitionId
protected String conversationDefinitionId
-
referenceId
protected String referenceId
-
referenceType
protected String referenceType
-
referenceDefinitionId
protected String referenceDefinitionId
-
ownerId
protected String ownerId
-
withAllParticipants
protected Collection<String> withAllParticipants
-
withAnyParticipants
protected Collection<String> withAnyParticipants
-
participantsOrOwner
protected Collection<String> participantsOrOwner
-
accessibleByParticipant
protected String accessibleByParticipant
-
accessibleByGroups
protected Collection<String> accessibleByGroups
-
lastMessageAfter
protected Date lastMessageAfter
-
lastMessageBefore
protected Date lastMessageBefore
-
userAccountId
protected String userAccountId
-
userAccountSubType
protected String userAccountSubType
-
updateTimeAfter
protected Date updateTimeAfter
-
updateTimeBefore
protected Date updateTimeBefore
-
createdBefore
protected Date createdBefore
-
createdAfter
protected Date createdAfter
-
state
protected String state
-
tenantId
protected 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 Detail
-
ConversationQueryImpl
public ConversationQueryImpl(CommandExecutor commandExecutor, EngageEngineConfiguration engageEngineConfiguration)
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getId
in interfaceCacheAwareQuery<ConversationEntity>
-
id
public ConversationQuery id(String id)
Description copied from interface:ConversationQuery
Select a conversation with the given id.- Specified by:
id
in interfaceConversationQuery
-
externalId
public ConversationQuery externalId(String externalId)
Description copied from interface:ConversationQuery
Select conversation with the given external id.- Specified by:
externalId
in interfaceConversationQuery
-
type
public ConversationQuery type(String type)
- Specified by:
type
in interfaceConversationQuery
-
subType
public ConversationQuery subType(String subType)
- Specified by:
subType
in interfaceConversationQuery
-
name
public ConversationQuery name(String name)
- Specified by:
name
in interfaceConversationQuery
-
conversationDefinitionId
public ConversationQuery conversationDefinitionId(String conversationDefinitionId)
- Specified by:
conversationDefinitionId
in interfaceConversationQuery
-
referenceId
public ConversationQuery referenceId(String referenceId)
- Specified by:
referenceId
in interfaceConversationQuery
-
referenceType
public ConversationQuery referenceType(String referenceType)
- Specified by:
referenceType
in interfaceConversationQuery
-
referenceDefinitionId
public ConversationQuery referenceDefinitionId(String referenceDefinitionId)
- Specified by:
referenceDefinitionId
in interfaceConversationQuery
-
ownerId
public ConversationQuery ownerId(String ownerId)
- Specified by:
ownerId
in interfaceConversationQuery
-
withAllParticipants
public ConversationQuery withAllParticipants(Collection<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(Collection<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(Collection<String> participantsOrOwner)
- Specified by:
participantsOrOwner
in interfaceConversationQuery
-
accessibleByParticipantOrGroups
public ConversationQuery accessibleByParticipantOrGroups(String participantId, Collection<String> groups)
- Specified by:
accessibleByParticipantOrGroups
in interfaceConversationQuery
-
withoutParent
public ConversationQuery withoutParent()
- Specified by:
withoutParent
in interfaceConversationQuery
-
lastMessageAfter
public ConversationQuery lastMessageAfter(Date lastMessageAfter)
- Specified by:
lastMessageAfter
in interfaceConversationQuery
-
lastMessageBefore
public ConversationQuery lastMessageBefore(Date lastMessageBefore)
- Specified by:
lastMessageBefore
in interfaceConversationQuery
-
userAccountId
public ConversationQuery userAccountId(String userAccountId)
- Specified by:
userAccountId
in interfaceConversationQuery
-
userAccountSubType
public ConversationQuery userAccountSubType(String userAccountSubType)
- Specified by:
userAccountSubType
in interfaceConversationQuery
-
updateTimeAfter
public ConversationQuery updateTimeAfter(Date updateTimeAfter)
- Specified by:
updateTimeAfter
in interfaceConversationQuery
-
updateTimeBefore
public ConversationQuery updateTimeBefore(Date updateTimeBefore)
- Specified by:
updateTimeBefore
in interfaceConversationQuery
-
createdBefore
public ConversationQuery createdBefore(Date createdBefore)
- Specified by:
createdBefore
in interfaceConversationQuery
-
createdAfter
public ConversationQuery createdAfter(Date createdAfter)
- Specified by:
createdAfter
in interfaceConversationQuery
-
tagsNotIn
public ConversationQuery tagsNotIn(Collection<String> tagsNotIn)
- Specified by:
tagsNotIn
in interfaceConversationQuery
-
tagsNotIn
public ConversationQuery tagsNotIn(String tagNotIn)
- Specified by:
tagsNotIn
in interfaceConversationQuery
-
tagsNotIn
public ConversationQuery tagsNotIn(String tagNotIn, String... tagsNotIn)
- Specified by:
tagsNotIn
in interfaceConversationQuery
-
tags
public ConversationQuery tags(Collection<String> tags)
- Specified by:
tags
in interfaceConversationQuery
-
tags
public ConversationQuery tags(String tag)
- Specified by:
tags
in interfaceConversationQuery
-
tags
public ConversationQuery tags(String tag, String... tags)
- Specified by:
tags
in interfaceConversationQuery
-
state
public ConversationQuery state(String state)
- Specified by:
state
in interfaceConversationQuery
-
tenantId
public ConversationQuery tenantId(String tenantId)
- Specified by:
tenantId
in interfaceConversationQuery
-
withoutTenantId
public ConversationQuery withoutTenantId()
- Specified by:
withoutTenantId
in interfaceConversationQuery
-
withoutMessages
public ConversationQuery withoutMessages()
- Specified by:
withoutMessages
in interfaceConversationQuery
-
addTag
protected ConversationQuery addTag(String tag)
-
addTagNotIn
protected ConversationQuery addTagNotIn(String tagNotIn)
-
includeIdentityLinks
public ConversationQuery includeIdentityLinks()
- Specified by:
includeIdentityLinks
in interfaceConversationQuery
-
includeVariables
public ConversationQuery includeVariables()
- Specified by:
includeVariables
in interfaceConversationQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCount
in classAbstractVariableQueryImpl<ConversationQuery,Conversation>
-
executeList
public List<Conversation> executeList(CommandContext commandContext)
- Specified by:
executeList
in classAbstractVariableQueryImpl<ConversationQuery,Conversation>
-
enhanceCachedValue
public void enhanceCachedValue(ConversationEntity conversation)
- 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
-
getExternalId
public String getExternalId()
-
getType
public String getType()
-
getSubType
public String getSubType()
-
getName
public String getName()
-
getConversationDefinitionId
public String getConversationDefinitionId()
-
getReferenceId
public String getReferenceId()
-
getReferenceType
public String getReferenceType()
-
getReferenceDefinitionId
public String getReferenceDefinitionId()
-
getCreatedBefore
public Date getCreatedBefore()
-
getCreatedAfter
public Date getCreatedAfter()
-
getTenantId
public String getTenantId()
-
isWithoutTenantId
public boolean isWithoutTenantId()
-
getOwnerId
public String getOwnerId()
-
getWithAllParticipants
public Collection<String> getWithAllParticipants()
-
getWithAllParticipantsSize
public int getWithAllParticipantsSize()
-
getWithAnyParticipants
public Collection<String> getWithAnyParticipants()
-
getParticipantsOrOwner
public Collection<String> getParticipantsOrOwner()
-
getParticipantsOrOwnerSize
public int getParticipantsOrOwnerSize()
-
getAccessibleByParticipant
public String getAccessibleByParticipant()
-
getAccessibleByGroups
public Collection<String> getAccessibleByGroups()
-
isWithoutParent
public boolean isWithoutParent()
-
isRequiresIdentityLinks
public boolean isRequiresIdentityLinks()
-
isWithoutMessages
public boolean isWithoutMessages()
-
getLastMessageAfter
public Date getLastMessageAfter()
-
getLastMessageBefore
public Date getLastMessageBefore()
-
getUserAccountId
public String getUserAccountId()
-
getUserAccountSubType
public String getUserAccountSubType()
-
getUpdateTimeAfter
public Date getUpdateTimeAfter()
-
getUpdateTimeBefore
public Date getUpdateTimeBefore()
-
getState
public String getState()
-
isIncludeIdentityLinks
public boolean isIncludeIdentityLinks()
-
isIncludeVariables
public boolean isIncludeVariables()
-
orderByLastMessageTime
public ConversationQuery orderByLastMessageTime()
- Specified by:
orderByLastMessageTime
in interfaceConversationQuery
-
-