Class ConversationStatusEntityImpl
java.lang.Object
org.flowable.common.engine.impl.persistence.entity.AbstractEntity
com.flowable.engage.engine.impl.persistence.entity.AbstractEngageEngineEntity
com.flowable.engage.engine.impl.persistence.entity.ConversationStatusEntityImpl
- All Implemented Interfaces:
ConversationStatusEntity
,ConversationStatus
,HasRevision
,Entity
public class ConversationStatusEntityImpl
extends AbstractEngageEngineEntity
implements ConversationStatusEntity
- Author:
- Filip Hrisafov, Joram Barrez
-
Field Summary
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()
The id of the last sent message to within the conversation to the user (sent means either pushed as a mobile push message or over WS or fetched from a read of the conversation).int
int
int
void
setConversationId
(String conversationId) void
setFilterId
(String filterId) void
void
setLastReadMessageId
(String lastReadMessageId) void
setLastReadMessageTimestamp
(Date lastReadMessageTimestamp) void
setLastSentMessageId
(String lastSentMessageId) void
setLastSentMessageTimestamp
(Date lastSentMessageTimestamp) void
setTenantId
(String tenantId) void
setUnreadMessageCount
(int unreadMessageCount) void
setUnreadPersonalMessageCount
(int unreadPersonalMessageCount) void
setUnsentMessageCount
(int unsentMessageCount) void
Methods inherited from class com.flowable.engage.engine.impl.persistence.entity.AbstractEngageEngineEntity
getIdPrefix
Methods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
getOriginalPersistentState, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setInserted, setOriginalPersistentState, setRevision, setUpdated
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.flowable.common.engine.impl.persistence.entity.Entity
getIdPrefix, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setInserted, setOriginalPersistentState, setUpdated
-
Constructor Details
-
ConversationStatusEntityImpl
public ConversationStatusEntityImpl()
-
-
Method Details
-
getPersistentState
- Specified by:
getPersistentState
in interfaceEntity
-
getId
- Specified by:
getId
in interfaceEntity
- Overrides:
getId
in classAbstractEntity
-
setId
- Specified by:
setId
in interfaceEntity
- Overrides:
setId
in classAbstractEntity
-
getTenantId
- Specified by:
getTenantId
in interfaceConversationStatus
- Returns:
- Tenant for this conversation
-
setTenantId
- Specified by:
setTenantId
in interfaceConversationStatusEntity
-
getUserId
- Specified by:
getUserId
in interfaceConversationStatus
- Returns:
- The id of the user for which this entry is created.
-
setUserId
- Specified by:
setUserId
in interfaceConversationStatusEntity
-
getConversationId
- Specified by:
getConversationId
in interfaceConversationStatus
- Returns:
- The id of the conversation for which this entry is created.
-
setConversationId
- Specified by:
setConversationId
in interfaceConversationStatusEntity
-
getFilterId
- Specified by:
getFilterId
in interfaceConversationStatus
- Returns:
- The id of the filter for which this entry is created.
-
setFilterId
- Specified by:
setFilterId
in interfaceConversationStatusEntity
-
getUnreadMessageCount
public int getUnreadMessageCount()- Specified by:
getUnreadMessageCount
in interfaceConversationStatus
- Returns:
- The total number of unread messages for this conversation and user
-
setUnreadMessageCount
public void setUnreadMessageCount(int unreadMessageCount) - Specified by:
setUnreadMessageCount
in interfaceConversationStatusEntity
-
getUnreadPersonalMessageCount
public int getUnreadPersonalMessageCount()- Specified by:
getUnreadPersonalMessageCount
in interfaceConversationStatus
- Returns:
- The total number of unread personal messages for this conversation and user. This will be the same as the unread message count, if this is a DM, GM, self, etc type of conversation. For Channels, desks, etc it only counts mentions or things like @channel, etc
-
setUnreadPersonalMessageCount
public void setUnreadPersonalMessageCount(int unreadPersonalMessageCount) - Specified by:
setUnreadPersonalMessageCount
in interfaceConversationStatusEntity
-
getUnsentMessageCount
public int getUnsentMessageCount()- Specified by:
getUnsentMessageCount
in interfaceConversationStatus
- Returns:
- The total number of unsent messages for this conversation and user (a message is considered unsent, if it was not sent over WS or as a push notification)
-
setUnsentMessageCount
public void setUnsentMessageCount(int unsentMessageCount) - Specified by:
setUnsentMessageCount
in interfaceConversationStatusEntity
-
getLastReadMessageId
- Specified by:
getLastReadMessageId
in interfaceConversationStatus
- Returns:
- The id of the last read message within that conversation
-
setLastReadMessageId
- Specified by:
setLastReadMessageId
in interfaceConversationStatusEntity
-
getLastReadMessageTimestamp
- Specified by:
getLastReadMessageTimestamp
in interfaceConversationStatus
- Returns:
- The timestamp of the last read message within this conversation
-
setLastReadMessageTimestamp
- Specified by:
setLastReadMessageTimestamp
in interfaceConversationStatusEntity
-
getLastSentMessageId
Description copied from interface:ConversationStatus
The id of the last sent message to within the conversation to the user (sent means either pushed as a mobile push message or over WS or fetched from a read of the conversation).- Specified by:
getLastSentMessageId
in interfaceConversationStatus
-
setLastSentMessageId
- Specified by:
setLastSentMessageId
in interfaceConversationStatusEntity
-
getLastSentMessageTimestamp
- Specified by:
getLastSentMessageTimestamp
in interfaceConversationStatus
- Returns:
- The timestamp of the last sent message within this conversation.
-
setLastSentMessageTimestamp
- Specified by:
setLastSentMessageTimestamp
in interfaceConversationStatusEntity
-