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 Constructor Description ConversationStatusEntityImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConversationId()
String
getFilterId()
String
getId()
String
getLastReadMessageId()
Date
getLastReadMessageTimestamp()
String
getLastSentMessageId()
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).Date
getLastSentMessageTimestamp()
Object
getPersistentState()
String
getTenantId()
int
getUnreadMessageCount()
int
getUnreadPersonalMessageCount()
int
getUnsentMessageCount()
String
getUserId()
void
setConversationId(String conversationId)
void
setFilterId(String filterId)
void
setId(String id)
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
setUserId(String userId)
-
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
-
-
-
-
Method Detail
-
getPersistentState
public Object getPersistentState()
- Specified by:
getPersistentState
in interfaceEntity
-
getId
public String getId()
- Specified by:
getId
in interfaceEntity
- Overrides:
getId
in classAbstractEntity
-
setId
public void setId(String id)
- Specified by:
setId
in interfaceEntity
- Overrides:
setId
in classAbstractEntity
-
getTenantId
public String getTenantId()
- Specified by:
getTenantId
in interfaceConversationStatus
- Returns:
- Tenant for this conversation
-
setTenantId
public void setTenantId(String tenantId)
- Specified by:
setTenantId
in interfaceConversationStatusEntity
-
getUserId
public String getUserId()
- Specified by:
getUserId
in interfaceConversationStatus
- Returns:
- The id of the user for which this entry is created.
-
setUserId
public void setUserId(String userId)
- Specified by:
setUserId
in interfaceConversationStatusEntity
-
getConversationId
public String getConversationId()
- Specified by:
getConversationId
in interfaceConversationStatus
- Returns:
- The id of the conversation for which this entry is created.
-
setConversationId
public void setConversationId(String conversationId)
- Specified by:
setConversationId
in interfaceConversationStatusEntity
-
getFilterId
public String getFilterId()
- Specified by:
getFilterId
in interfaceConversationStatus
- Returns:
- The id of the filter for which this entry is created.
-
setFilterId
public void setFilterId(String filterId)
- 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
public String getLastReadMessageId()
- Specified by:
getLastReadMessageId
in interfaceConversationStatus
- Returns:
- The id of the last read message within that conversation
-
setLastReadMessageId
public void setLastReadMessageId(String lastReadMessageId)
- Specified by:
setLastReadMessageId
in interfaceConversationStatusEntity
-
getLastReadMessageTimestamp
public Date getLastReadMessageTimestamp()
- Specified by:
getLastReadMessageTimestamp
in interfaceConversationStatus
- Returns:
- The timestamp of the last read message within this conversation
-
setLastReadMessageTimestamp
public void setLastReadMessageTimestamp(Date lastReadMessageTimestamp)
- Specified by:
setLastReadMessageTimestamp
in interfaceConversationStatusEntity
-
getLastSentMessageId
public String 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
public void setLastSentMessageId(String lastSentMessageId)
- Specified by:
setLastSentMessageId
in interfaceConversationStatusEntity
-
getLastSentMessageTimestamp
public Date getLastSentMessageTimestamp()
- Specified by:
getLastSentMessageTimestamp
in interfaceConversationStatus
- Returns:
- The timestamp of the last sent message within this conversation.
-
setLastSentMessageTimestamp
public void setLastSentMessageTimestamp(Date lastSentMessageTimestamp)
- Specified by:
setLastSentMessageTimestamp
in interfaceConversationStatusEntity
-
-