public abstract class AbstractTicketCmd<T> extends AbstractDeskCmd<T>
Modifier and Type | Field and Description |
---|---|
protected String |
deskConversationId |
protected String |
digitalAssistantUserId |
protected boolean |
isNewTicket |
protected String |
ticketConversationId |
SPLITTING_CHARS
Modifier | Constructor and Description |
---|---|
protected |
AbstractTicketCmd(String deskConversationId,
String ticketConversationId,
String digitalAssistantUserId,
boolean isNewTicket) |
Modifier and Type | Method and 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.
|
extractWordsWithMaxSize, getConversationParticipants, getConversationService, getDeskService, getIdentityService, getMessageService, isSplittingChar
protected final String deskConversationId
protected final String ticketConversationId
protected final String digitalAssistantUserId
protected final boolean isNewTicket
protected Map<String,Object> createAndInitializeTicketPayload(CommandContext commandContext)
protected void removeStickyMessages(String conversationId, String userId, CommandContext commandContext)
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 functionprotected String getUserDisplayName(String userId, String tenantId, CommandContext commandContext)
public String getDeskConversationId()
public String getTicketConversationId()
public String getDigitalAssistantUserId()
public Conversation getDeskConversation(CommandContext commandContext)
public Conversation getTicketConversation(CommandContext commandContext)
public boolean isNewTicket()