Interface ConversationFacade

  • All Known Implementing Classes:
    DefaultConversationFacade

    public interface ConversationFacade
    The facade interface of MessageCenter
    • Method Detail

      • getConversationsForCustomer

        java.util.List<ConversationData> getConversationsForCustomer()
        Gets conversations for customer
        Returns:
        List of the Conversation Data
      • getUnassignedConversations

        java.util.List<ConversationData> getUnassignedConversations()
        Gets Unassigned conversations of agent
        Returns:
        the list of Conversation Data
      • pickConversation

        ConversationData pickConversation​(java.lang.String conversationId)
        pick Conversation by Customer Support Agent
        Parameters:
        conversationId - id of the conversation
        Returns:
        the picked Conversation Data
      • getOpenConversations

        java.util.List<ConversationData> getOpenConversations()
        Gets open list of the Customer Support Agent
        Returns:
        Assigned and Open List of the Customer Support Agent
      • getConversationById

        ConversationData getConversationById​(java.lang.String conversationId)
        Gets Conversation by Id
        Parameters:
        conversationId - id of the conversation
        Returns:
        the Conversation Data
      • closeConversation

        ConversationData closeConversation​(java.lang.String uid)
        Closes a conversation for given uid
        Parameters:
        uid - the conversation's uid
        Returns:
        the closed conversation
      • isConversationAccessible

        boolean isConversationAccessible​(ConversationData conversation)
        Check the specific conversation if is accessible
        Parameters:
        conversation - the specific conversation data
        Returns:
        true is accessible or otherwise
      • getConversationDataList

        ConversationDataList getConversationDataList​(java.util.List<ConversationData> conversations)
        get conversation data list
        Parameters:
        conversations - the conversation data list
        Returns:
        conversation datas
      • getMessagesForConversation

        java.util.List<ConversationMessageData> getMessagesForConversation​(java.lang.String conversationId)
        Get all history messages for conversation
        Parameters:
        conversationId - the specific conversationId
        Returns:
        list of history messages
      • getConversationMessageList

        ConversationMessageListData getConversationMessageList​(java.util.List<ConversationMessageData> messages)
        Get all history messages for conversation into
        Parameters:
        messages - the messages list
        Returns:
        conversation messages list data
      • sendMessage

        ConversationData sendMessage​(ConversationMessageListData conversationMessage)
        Send message
        Parameters:
        conversationMessage - message in content
        Returns:
        ConversationModel message sending used conversation
      • isCustomer

        boolean isCustomer()
        Returns:
        true if current user is customer