Class AbstractTicketCmd<T>
- java.lang.Object
-
- com.flowable.engage.engine.impl.desk.cmd.AbstractDeskCmd<T>
-
- com.flowable.engage.engine.impl.desk.cmd.AbstractTicketCmd<T>
-
- All Implemented Interfaces:
Command<T>
- Direct Known Subclasses:
HandleUnassignedTicketMessageCmd
,InitializeTicketConversationCmd
,SwitchToDeskTeamCmd
,SwitchToDeskTeamMemberCmd
public abstract class AbstractTicketCmd<T> extends AbstractDeskCmd<T>
An abstract base class for ticket based commands.- Author:
- Micha Kiener
-
-
Field Summary
Fields Modifier and Type Field Description protected String
deskConversationId
protected String
digitalAssistantUserId
protected boolean
isNewTicket
protected String
ticketConversationId
-
Fields inherited from class com.flowable.engage.engine.impl.desk.cmd.AbstractDeskCmd
SPLITTING_CHARS
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractTicketCmd(String deskConversationId, String ticketConversationId, String digitalAssistantUserId, boolean isNewTicket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>
createAndInitializeTicketPayload(CommandContext commandContext)
Conversation
getDeskConversation(CommandContext commandContext)
String
getDeskConversationId()
String
getDigitalAssistantUserId()
Conversation
getTicketConversation(CommandContext commandContext)
String
getTicketConversationId()
protected String
getUserDisplayName(String userId, String tenantId, CommandContext commandContext)
boolean
isNewTicket()
protected void
removeStickyMessages(String conversationId, String userId, CommandContext commandContext)
Removes sticky messages of the given conversation, optionally only, if private and recipient is the given user.-
Methods inherited from class com.flowable.engage.engine.impl.desk.cmd.AbstractDeskCmd
extractWordsWithMaxSize, getConversationParticipants, getConversationService, getDeskService, getIdentityService, getMessageService, isSplittingChar
-
-
-
-
Method Detail
-
createAndInitializeTicketPayload
protected Map<String,Object> createAndInitializeTicketPayload(CommandContext commandContext)
-
removeStickyMessages
protected void removeStickyMessages(String conversationId, String userId, CommandContext commandContext)
Removes sticky messages of the given conversation, optionally only, if private and recipient is the given user.- Parameters:
conversationId
- the id of the conversation to remove sticky messagesuserId
- the optional if of the recipient to remove its private messagescommandContext
- the command context under which to run this function
-
getUserDisplayName
protected String getUserDisplayName(String userId, String tenantId, CommandContext commandContext)
-
getDeskConversationId
public String getDeskConversationId()
-
getTicketConversationId
public String getTicketConversationId()
-
getDigitalAssistantUserId
public String getDigitalAssistantUserId()
-
getDeskConversation
public Conversation getDeskConversation(CommandContext commandContext)
-
getTicketConversation
public Conversation getTicketConversation(CommandContext commandContext)
-
isNewTicket
public boolean isNewTicket()
-
-