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 StringgetConversationId()StringgetFilterId()StringgetId()StringgetLastReadMessageId()DategetLastReadMessageTimestamp()StringgetLastSentMessageId()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).DategetLastSentMessageTimestamp()ObjectgetPersistentState()StringgetTenantId()intgetUnreadMessageCount()intgetUnreadPersonalMessageCount()intgetUnsentMessageCount()StringgetUserId()voidsetConversationId(String conversationId)voidsetFilterId(String filterId)voidsetId(String id)voidsetLastReadMessageId(String lastReadMessageId)voidsetLastReadMessageTimestamp(Date lastReadMessageTimestamp)voidsetLastSentMessageId(String lastSentMessageId)voidsetLastSentMessageTimestamp(Date lastSentMessageTimestamp)voidsetTenantId(String tenantId)voidsetUnreadMessageCount(int unreadMessageCount)voidsetUnreadPersonalMessageCount(int unreadPersonalMessageCount)voidsetUnsentMessageCount(int unsentMessageCount)voidsetUserId(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:
getPersistentStatein interfaceEntity
-
getId
public String getId()
- Specified by:
getIdin interfaceEntity- Overrides:
getIdin classAbstractEntity
-
setId
public void setId(String id)
- Specified by:
setIdin interfaceEntity- Overrides:
setIdin classAbstractEntity
-
getTenantId
public String getTenantId()
- Specified by:
getTenantIdin interfaceConversationStatus- Returns:
- Tenant for this conversation
-
setTenantId
public void setTenantId(String tenantId)
- Specified by:
setTenantIdin interfaceConversationStatusEntity
-
getUserId
public String getUserId()
- Specified by:
getUserIdin interfaceConversationStatus- Returns:
- The id of the user for which this entry is created.
-
setUserId
public void setUserId(String userId)
- Specified by:
setUserIdin interfaceConversationStatusEntity
-
getConversationId
public String getConversationId()
- Specified by:
getConversationIdin interfaceConversationStatus- Returns:
- The id of the conversation for which this entry is created.
-
setConversationId
public void setConversationId(String conversationId)
- Specified by:
setConversationIdin interfaceConversationStatusEntity
-
getFilterId
public String getFilterId()
- Specified by:
getFilterIdin interfaceConversationStatus- Returns:
- The id of the filter for which this entry is created.
-
setFilterId
public void setFilterId(String filterId)
- Specified by:
setFilterIdin interfaceConversationStatusEntity
-
getUnreadMessageCount
public int getUnreadMessageCount()
- Specified by:
getUnreadMessageCountin interfaceConversationStatus- Returns:
- The total number of unread messages for this conversation and user
-
setUnreadMessageCount
public void setUnreadMessageCount(int unreadMessageCount)
- Specified by:
setUnreadMessageCountin interfaceConversationStatusEntity
-
getUnreadPersonalMessageCount
public int getUnreadPersonalMessageCount()
- Specified by:
getUnreadPersonalMessageCountin 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:
setUnreadPersonalMessageCountin interfaceConversationStatusEntity
-
getUnsentMessageCount
public int getUnsentMessageCount()
- Specified by:
getUnsentMessageCountin 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:
setUnsentMessageCountin interfaceConversationStatusEntity
-
getLastReadMessageId
public String getLastReadMessageId()
- Specified by:
getLastReadMessageIdin interfaceConversationStatus- Returns:
- The id of the last read message within that conversation
-
setLastReadMessageId
public void setLastReadMessageId(String lastReadMessageId)
- Specified by:
setLastReadMessageIdin interfaceConversationStatusEntity
-
getLastReadMessageTimestamp
public Date getLastReadMessageTimestamp()
- Specified by:
getLastReadMessageTimestampin interfaceConversationStatus- Returns:
- The timestamp of the last read message within this conversation
-
setLastReadMessageTimestamp
public void setLastReadMessageTimestamp(Date lastReadMessageTimestamp)
- Specified by:
setLastReadMessageTimestampin interfaceConversationStatusEntity
-
getLastSentMessageId
public String getLastSentMessageId()
Description copied from interface:ConversationStatusThe 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:
getLastSentMessageIdin interfaceConversationStatus
-
setLastSentMessageId
public void setLastSentMessageId(String lastSentMessageId)
- Specified by:
setLastSentMessageIdin interfaceConversationStatusEntity
-
getLastSentMessageTimestamp
public Date getLastSentMessageTimestamp()
- Specified by:
getLastSentMessageTimestampin interfaceConversationStatus- Returns:
- The timestamp of the last sent message within this conversation.
-
setLastSentMessageTimestamp
public void setLastSentMessageTimestamp(Date lastSentMessageTimestamp)
- Specified by:
setLastSentMessageTimestampin interfaceConversationStatusEntity
-
-