Class MessageQueryImpl
java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.query.AbstractQuery<MessageQuery,Message>
com.flowable.engage.engine.impl.message.MessageQueryImpl
- All Implemented Interfaces:
MessageQuery,Serializable,CacheAwareQuery<MessageEntity>,Query<MessageQuery,,Message> Command<Object>
public class MessageQueryImpl
extends AbstractQuery<MessageQuery,Message>
implements MessageQuery, CacheAwareQuery<MessageEntity>
- Author:
- Filip Hrisafov
- See Also:
-
Nested Class Summary
Nested ClassesNested 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 booleanprotected Categoryprotected Stringprotected Dateprotected Dateprotected Dateprotected Dateprotected static final ListQueryParameterObject.OrderByprotected Stringprotected Stringprotected booleanprotected booleanprotected booleanprotected booleanprotected Stringprotected Collection<String>protected List<MessageQueryImpl.Range>protected Stringprotected Stringprotected Stringprotected Collection<String>protected Stringprotected StringFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessibleByUserOrGroups(String userId, Collection<String> groupIds) Query all messages for the given user (it will also fetch private messages for that user) or the given groups.actionInstanceId(String actionInstanceId) protected voidcomputeAccessibleRanges(CommandContext commandContext) conversationId(String conversationId) createdAfter(Date createdAfter) createdAfterOrEqual(Date createdAfterOrEqual) createdBefore(Date createdBefore) createdBeforeOrEqual(Date createdBeforeOrEqual) longexecuteCount(CommandContext commandContext) executeList(CommandContext commandContext) externalId(String externalId) getId()Include the message audits for the queried messagesQuery on sticky messages only.Query all messages (even private ones).Query on sticky messages.booleanbooleanisFalse()We can't usefalsein SQL in a DB agnostic way.booleanbooleanbooleanbooleanisTrue()referenceId(String referenceId) referenceType(String referenceType) Query all messages send by the user with thesenderId.senderIdIn(Collection<String> senderIds) senderIdNotIn(Collection<String> notSenderIds) Methods 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 org.flowable.common.engine.api.query.CacheAwareQuery
enhanceCachedValueMethods inherited from interface com.flowable.engage.message.api.MessageQuery
accessibleByUser
-
Field Details
-
DEFAULT_ORDER_BY
-
id
-
externalId
-
category
-
conversationId
-
actionInstanceId
-
createdAfter
-
createdAfterOrEqual
-
createdBefore
-
createdBeforeOrEqual
-
accessibleByUser
-
accessibleByGroups
-
subType
-
type
-
isNotType
-
referenceId
-
referenceType
-
senderId
-
senderIds
-
notSenderIds
-
ranges
-
includePrivate
protected boolean includePrivate -
includeSticky
protected boolean includeSticky -
includeOnlyStickyMessages
protected boolean includeOnlyStickyMessages -
includeMessageAudits
protected boolean includeMessageAudits -
bothAccessibleByUserAndGroups
protected boolean bothAccessibleByUserAndGroups
-
-
Constructor Details
-
MessageQueryImpl
-
-
Method Details
-
id
- Specified by:
idin interfaceMessageQuery
-
externalId
- Specified by:
externalIdin interfaceMessageQuery
-
category
- Specified by:
categoryin interfaceMessageQuery
-
conversationId
- Specified by:
conversationIdin interfaceMessageQuery
-
actionInstanceId
- Specified by:
actionInstanceIdin interfaceMessageQuery
-
createdAfter
- Specified by:
createdAfterin interfaceMessageQuery
-
createdAfterOrEqual
- Specified by:
createdAfterOrEqualin interfaceMessageQuery
-
createdBefore
- Specified by:
createdBeforein interfaceMessageQuery
-
createdBeforeOrEqual
- Specified by:
createdBeforeOrEqualin interfaceMessageQuery
-
accessibleByUserOrGroups
Description copied from interface:MessageQueryQuery all messages for the given user (it will also fetch private messages for that user) or the given groups.MessageQuery.conversationId(String)must bbe set when doing the query.- Specified by:
accessibleByUserOrGroupsin interfaceMessageQuery- Parameters:
userId- the id of the user for which messages should be queriedgroupIds- the groups ids for which the messages should be queried
-
subType
- Specified by:
subTypein interfaceMessageQuery
-
type
- Specified by:
typein interfaceMessageQuery
-
isNotType
- Specified by:
isNotTypein interfaceMessageQuery
-
referenceId
- Specified by:
referenceIdin interfaceMessageQuery
-
referenceType
- Specified by:
referenceTypein interfaceMessageQuery
-
senderId
Description copied from interface:MessageQueryQuery all messages send by the user with thesenderId.- Specified by:
senderIdin interfaceMessageQuery- Parameters:
senderId- the id of the sender
-
senderIdIn
- Specified by:
senderIdInin interfaceMessageQuery
-
senderIdNotIn
- Specified by:
senderIdNotInin interfaceMessageQuery
-
includePrivate
Description copied from interface:MessageQueryQuery all messages (even private ones). IfMessageQuery.accessibleByUser(String)is used than this has no effect.- Specified by:
includePrivatein interfaceMessageQuery
-
includeSticky
Description copied from interface:MessageQueryQuery on sticky messages.- Specified by:
includeStickyin interfaceMessageQuery
-
includeOnlyStickyMessages
Description copied from interface:MessageQueryQuery on sticky messages only.- Specified by:
includeOnlyStickyMessagesin interfaceMessageQuery
-
includeMessageAudits
Description copied from interface:MessageQueryInclude the message audits for the queried messages- Specified by:
includeMessageAuditsin interfaceMessageQuery
-
executeCount
- Specified by:
executeCountin classAbstractQuery<MessageQuery,Message>
-
executeList
- Specified by:
executeListin classAbstractQuery<MessageQuery,Message>
-
computeAccessibleRanges
-
getId
- Specified by:
getIdin interfaceCacheAwareQuery<MessageEntity>
-
getExternalId
-
getCategory
-
getConversationId
-
getActionInstanceId
-
getCreatedAfter
-
getCreatedAfterOrEqual
-
getCreatedBefore
-
getCreatedBeforeOrEqual
-
getAccessibleByUser
-
getSubType
-
getReferenceId
-
getReferenceType
-
getSenderId
-
getSenderIds
-
getNotSenderIds
-
isIncludePrivate
public boolean isIncludePrivate() -
isIncludeSticky
public boolean isIncludeSticky() -
isIncludeMessageAudits
public boolean isIncludeMessageAudits() -
isBothAccessibleByUserAndGroups
public boolean isBothAccessibleByUserAndGroups() -
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() -
getRanges
-
orderByCreationTime
- Specified by:
orderByCreationTimein interfaceMessageQuery
-
orderByConversationId
- Specified by:
orderByConversationIdin interfaceMessageQuery
-