Package de.xima.fc.inbox.bean
Class ProcessMessagesBean
- java.lang.Object
-
- de.xima.fc.inbox.bean.ProcessMessagesBean
-
- All Implemented Interfaces:
IDataContainer
,Serializable
@ViewScoped @Named public class ProcessMessagesBean extends Object implements Serializable, IDataContainer
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProcessMessagesBean()
-
Method Summary
-
-
-
Method Detail
-
isHasMessagesFeature
public boolean isHasMessagesFeature()
-
isHasNewWorkflow
public boolean isHasNewWorkflow()
-
getSelectedMergeMode
public EUploadRequestFileMergeMode getSelectedMergeMode()
-
setSelectedMergeMode
public void setSelectedMergeMode(EUploadRequestFileMergeMode selectedMergeMode)
-
getTotalNumberOfUnreadChats
public long getTotalNumberOfUnreadChats()
-
getUploadRequestElements
public List<UploadRequestElement> getUploadRequestElements()
-
setUploadRequestElements
public void setUploadRequestElements(List<UploadRequestElement> uploadRequestElements)
-
getSelectedUploadRequestField
public UploadRequestElement getSelectedUploadRequestField()
-
setSelectedUploadRequestField
public void setSelectedUploadRequestField(UploadRequestElement selectedUploadRequestField)
-
isChatOpen
public boolean isChatOpen()
-
setChatOpen
public void setChatOpen(boolean chatOpen)
-
getMergeModes
public List<EUploadRequestFileMergeMode> getMergeModes()
-
setMergeModes
public void setMergeModes(List<EUploadRequestFileMergeMode> mergeModes)
-
getSenderName
public String getSenderName()
-
setSenderName
public void setSenderName(String senderName)
-
getSelectedChat
public FormRecordChat getSelectedChat()
-
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)
-
getMessageList
public List<MessageViewModel> getMessageList()
-
setMessageList
public void setMessageList(List<MessageViewModel> messageList)
-
getSelectedChatUser
public ProcessChatUserData getSelectedChatUser()
-
setSelectedChatUser
public void setSelectedChatUser(ProcessChatUserData selectedChatUser)
-
getFormRecordSubmitters
public List<ProcessChatUserData> getFormRecordSubmitters()
-
getUploadElementsData
public List<IFormRecordUploadRequestElementData> getUploadElementsData()
-
getAllUploadElements
public List<UploadRequestElement> getAllUploadElements()
-
getChatList
public List<FormRecordChat> getChatList()
-
setChatList
public void setChatList(List<FormRecordChat> chatList)
-
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)
-
getAttachment
public org.primefaces.model.StreamedContent getAttachment(UploadResponseViewModel uploadResponse)
-
getLastMessage
public FormRecordMessage getLastMessage(FormRecordChat chat)
-
getLastMessageContent
public String getLastMessageContent(FormRecordChat chat)
-
getLastMessageTime
public String getLastMessageTime(FormRecordChat chat)
-
getSortedMessages
public List<FormRecordMessage> getSortedMessages(FormRecordChat selectedChat)
-
getUserDisplayName
public String getUserDisplayName(FormRecordChat chat)
-
isEndUserMessage
public boolean isEndUserMessage(MessageViewModel message)
-
isFirstMessageOfDay
public boolean isFirstMessageOfDay(List<MessageViewModel> messages, MessageViewModel currentMessage)
-
isInitialUser
public boolean isInitialUser(FormRecordChat chat)
-
isMessageFromMe
public boolean isMessageFromMe(MessageViewModel message)
-
onChatSelect
public void onChatSelect()
-
sendMessage
public void sendMessage()
-
toggleChat
public void toggleChat()
-
updateData
public void updateData()
Description copied from interface:IDataContainer
Should update data when called- Specified by:
updateData
in interfaceIDataContainer
-
-