Package com.flowable.engage.message.api
Interface MessageQuery
- All Superinterfaces:
Query<MessageQuery,
Message>
- All Known Implementing Classes:
MessageQueryImpl
- Author:
- Filip Hrisafov
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder
-
Method Summary
Modifier and TypeMethodDescriptiondefault MessageQuery
accessibleByUser
(String userId) Query all messages for the given user (it will also fetch private messages for that user).accessibleByUserOrGroups
(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) conversationId
(String conversationId) createdAfter
(Date createdAfter) createdAfterOrEqual
(Date createdAfterOrEqual) createdBefore
(Date createdBefore) createdBeforeOrEqual
(Date createdBeforeOrEqual) externalId
(String externalId) Include the message audits for the queried messagesQuery on sticky messages only.Query all messages (even private ones).Query on sticky messages.referenceId
(String referenceId) referenceType
(String referenceType) Query all messages send by the user with thesenderId
.senderIdIn
(Collection<String> senderIds) senderIdNotIn
(Collection<String> senderIds)
-
Method Details
-
id
-
externalId
-
category
-
conversationId
-
actionInstanceId
-
createdAfter
-
createdAfterOrEqual
-
createdBefore
-
createdBeforeOrEqual
-
accessibleByUser
Query all messages for the given user (it will also fetch private messages for that user).conversationId(String)
must be set when doing the query. NB: This will only fetch messages that the user has direct access to (not via groups).- Parameters:
userId
- the id of the user for which the messages should be queried
-
accessibleByUserOrGroups
Query all messages for the given user (it will also fetch private messages for that user) or the given groups.conversationId(String)
must bbe set when doing the query.- Parameters:
userId
- the id of the user for which messages should be queriedgroupIds
- the groups ids for which the messages should be queried
-
subType
-
type
-
isNotType
-
referenceId
-
referenceType
-
senderId
Query all messages send by the user with thesenderId
.- Parameters:
senderId
- the id of the sender
-
senderIdIn
-
senderIdNotIn
-
includePrivate
MessageQuery includePrivate()Query all messages (even private ones). IfaccessibleByUser(String)
is used than this has no effect. -
includeSticky
MessageQuery includeSticky()Query on sticky messages. -
includeOnlyStickyMessages
MessageQuery includeOnlyStickyMessages()Query on sticky messages only. -
includeMessageAudits
MessageQuery includeMessageAudits()Include the message audits for the queried messages -
orderByCreationTime
MessageQuery orderByCreationTime() -
orderByConversationId
MessageQuery orderByConversationId()
-