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:
getIdin interfaceCacheAwareQuery<ConversationEntity>
-
id
public ConversationQuery id(String id)
Description copied from interface:ConversationQuerySelect a conversation with the given id.- Specified by:
idin interfaceConversationQuery
-
externalId
public ConversationQuery externalId(String externalId)
Description copied from interface:ConversationQuerySelect conversation with the given external id.- Specified by:
externalIdin interfaceConversationQuery
-
type
public ConversationQuery type(String type)
- Specified by:
typein interfaceConversationQuery
-
subType
public ConversationQuery subType(String subType)
- Specified by:
subTypein interfaceConversationQuery
-
name
public ConversationQuery name(String name)
- Specified by:
namein interfaceConversationQuery
-
conversationDefinitionId
public ConversationQuery conversationDefinitionId(String conversationDefinitionId)
- Specified by:
conversationDefinitionIdin interfaceConversationQuery
-
referenceId
public ConversationQuery referenceId(String referenceId)
- Specified by:
referenceIdin interfaceConversationQuery
-
referenceType
public ConversationQuery referenceType(String referenceType)
- Specified by:
referenceTypein interfaceConversationQuery
-
referenceDefinitionId
public ConversationQuery referenceDefinitionId(String referenceDefinitionId)
- Specified by:
referenceDefinitionIdin interfaceConversationQuery
-
ownerId
public ConversationQuery ownerId(String ownerId)
- Specified by:
ownerIdin interfaceConversationQuery
-
withAllParticipants
public ConversationQuery withAllParticipants(Collection<String> withAllParticipants)
Description copied from interface:ConversationQueryConversations that contain exactly the givenwithAllParticipantscollection and nothing else- Specified by:
withAllParticipantsin interfaceConversationQuery
-
withAnyParticipants
public ConversationQuery withAnyParticipants(Collection<String> withAnyParticipants)
Description copied from interface:ConversationQueryConversations that have at least one of the givenwithAnyParticipantscollection as participant- Specified by:
withAnyParticipantsin interfaceConversationQuery
-
participantsOrOwner
public ConversationQuery participantsOrOwner(Collection<String> participantsOrOwner)
- Specified by:
participantsOrOwnerin interfaceConversationQuery
-
accessibleByParticipantOrGroups
public ConversationQuery accessibleByParticipantOrGroups(String participantId, Collection<String> groups)
- Specified by:
accessibleByParticipantOrGroupsin interfaceConversationQuery
-
withoutParent
public ConversationQuery withoutParent()
- Specified by:
withoutParentin interfaceConversationQuery
-
lastMessageAfter
public ConversationQuery lastMessageAfter(Date lastMessageAfter)
- Specified by:
lastMessageAfterin interfaceConversationQuery
-
lastMessageBefore
public ConversationQuery lastMessageBefore(Date lastMessageBefore)
- Specified by:
lastMessageBeforein interfaceConversationQuery
-
userAccountId
public ConversationQuery userAccountId(String userAccountId)
- Specified by:
userAccountIdin interfaceConversationQuery
-
userAccountSubType
public ConversationQuery userAccountSubType(String userAccountSubType)
- Specified by:
userAccountSubTypein interfaceConversationQuery
-
updateTimeAfter
public ConversationQuery updateTimeAfter(Date updateTimeAfter)
- Specified by:
updateTimeAfterin interfaceConversationQuery
-
updateTimeBefore
public ConversationQuery updateTimeBefore(Date updateTimeBefore)
- Specified by:
updateTimeBeforein interfaceConversationQuery
-
createdBefore
public ConversationQuery createdBefore(Date createdBefore)
- Specified by:
createdBeforein interfaceConversationQuery
-
createdAfter
public ConversationQuery createdAfter(Date createdAfter)
- Specified by:
createdAfterin interfaceConversationQuery
-
tagsNotIn
public ConversationQuery tagsNotIn(Collection<String> tagsNotIn)
- Specified by:
tagsNotInin interfaceConversationQuery
-
tagsNotIn
public ConversationQuery tagsNotIn(String tagNotIn)
- Specified by:
tagsNotInin interfaceConversationQuery
-
tagsNotIn
public ConversationQuery tagsNotIn(String tagNotIn, String... tagsNotIn)
- Specified by:
tagsNotInin interfaceConversationQuery
-
tags
public ConversationQuery tags(Collection<String> tags)
- Specified by:
tagsin interfaceConversationQuery
-
tags
public ConversationQuery tags(String tag)
- Specified by:
tagsin interfaceConversationQuery
-
tags
public ConversationQuery tags(String tag, String... tags)
- Specified by:
tagsin interfaceConversationQuery
-
state
public ConversationQuery state(String state)
- Specified by:
statein interfaceConversationQuery
-
tenantId
public ConversationQuery tenantId(String tenantId)
- Specified by:
tenantIdin interfaceConversationQuery
-
withoutTenantId
public ConversationQuery withoutTenantId()
- Specified by:
withoutTenantIdin interfaceConversationQuery
-
withoutMessages
public ConversationQuery withoutMessages()
- Specified by:
withoutMessagesin interfaceConversationQuery
-
addTag
protected ConversationQuery addTag(String tag)
-
addTagNotIn
protected ConversationQuery addTagNotIn(String tagNotIn)
-
includeIdentityLinks
public ConversationQuery includeIdentityLinks()
- Specified by:
includeIdentityLinksin interfaceConversationQuery
-
includeVariables
public ConversationQuery includeVariables()
- Specified by:
includeVariablesin interfaceConversationQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractVariableQueryImpl<ConversationQuery,Conversation>
-
executeList
public List<Conversation> executeList(CommandContext commandContext)
- Specified by:
executeListin classAbstractVariableQueryImpl<ConversationQuery,Conversation>
-
enhanceCachedValue
public void enhanceCachedValue(ConversationEntity conversation)
- 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
-
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:
orderByLastMessageTimein interfaceConversationQuery
-
-