Interface ConversationEntityManager

All Superinterfaces:
EntityManager<ConversationEntity>
All Known Implementing Classes:
ConversationEntityManagerImpl

public interface ConversationEntityManager extends EntityManager<ConversationEntity>
Author:
Filip Hrisafov, Joram Barrez
  • Method Details

    • createConversationQuery

      ConversationQuery createConversationQuery()
    • findByIdWithIdentityLinks

      ConversationEntity findByIdWithIdentityLinks(String conversationId)
      Find a conversation by id including its identity links.
      Parameters:
      conversationId - the id of the conversation
      Returns:
      the conversation with its identity links
    • findByIdWithIdentityLinksAndVariables

      ConversationEntity findByIdWithIdentityLinksAndVariables(String conversationId)
      Find a conversation by id including its identity links and variables.
      Parameters:
      conversationId - the id of the conversation
      Returns:
      the conversation with its identity links and variables
    • findByCriteria

      List<Conversation> findByCriteria(ConversationQuery query)
    • countByCriteria

      long countByCriteria(ConversationQuery query)
    • updateLastMessageTime

      int updateLastMessageTime(String conversationId, Date updateTime)
    • deleteConversationAndRelatedData

      void deleteConversationAndRelatedData(String conversationId)
    • countConversationsWithLastMessageBetween

      long countConversationsWithLastMessageBetween(Date from, Date until, boolean includePrivate, boolean includeSticky)
    • findConversationsWithLastMessageBetween

      List<Conversation> findConversationsWithLastMessageBetween(Date from, Date until, boolean includePrivate, boolean includeSticky)