Class ProcessMessagesBean

    • Constructor Detail

      • ProcessMessagesBean

        public ProcessMessagesBean()
    • Method Detail

      • formatInstantToTime

        public static String formatInstantToTime​(Instant instant)
      • isHasMessagesFeature

        public boolean isHasMessagesFeature()
      • isHasNewWorkflow

        public boolean isHasNewWorkflow()
      • getTotalNumberOfUnreadChats

        public long getTotalNumberOfUnreadChats()
      • setSelectedUploadRequestField

        public void setSelectedUploadRequestField​(UploadRequestElement selectedUploadRequestField)
      • isChatOpen

        public boolean isChatOpen()
      • setChatOpen

        public void setChatOpen​(boolean chatOpen)
      • getSenderName

        public String getSenderName()
      • setSenderName

        public void setSenderName​(String senderName)
      • setSelectedChat

        public void setSelectedChat​(FormRecordChat selectedChat)
      • getMessage

        public String getMessage()
      • setMessage

        public void setMessage​(String message)
      • isSendUploadRequest

        public boolean isSendUploadRequest()
      • setSendUploadRequest

        public void setSendUploadRequest​(boolean sendUploadRequest)
      • setSelectedChatUser

        public void setSelectedChatUser​(ProcessChatUserData selectedChatUser)
      • addToMessageList

        public void addToMessageList()
      • countOfUnreadMessages

        public long countOfUnreadMessages​(FormRecordChat chat)
      • createLayoutOptions

        public org.primefaces.extensions.model.layout.LayoutOptions createLayoutOptions()
        Creates the options for the PrimeFaces extensions layout with the chat list to the left and the chat messages to the right.
        Returns:
        The layout options for the chat panel.
      • createMergeModes

        public void createMergeModes()
      • createUploadRequestMessage

        public String createUploadRequestMessage​(String formFieldName,
                                                 Long repetitionIndex)
      • createUploadResponseMessage

        public String createUploadResponseMessage​(String userDisplayName,
                                                  String formFieldName,
                                                  Long repetitionIndex,
                                                  int numberOfAttachments)
      • formatMessageDividingLineDate

        public String formatMessageDividingLineDate​(Instant sentInstant)
      • getAttachment

        public org.primefaces.model.StreamedContent getAttachment​(UploadResponseViewModel uploadResponse)
      • isEndUserMessage

        public boolean isEndUserMessage​(MessageViewModel message)
      • isInitialUser

        public boolean isInitialUser​(FormRecordChat chat)
      • isMessageFromMe

        public boolean isMessageFromMe​(MessageViewModel message)
      • onChatSelect

        public void onChatSelect()
      • sendMessage

        public void sendMessage()
      • toggleChat

        public void toggleChat()