Class AbstractDeskCmd<T>

java.lang.Object
com.flowable.engage.engine.impl.desk.cmd.AbstractDeskCmd<T>
All Implemented Interfaces:
Command<T>
Direct Known Subclasses:
AbstractTicketCmd, StartTicketConversationCmd

public abstract class AbstractDeskCmd<T> extends Object implements Command<T>
An abstract base class for desk and ticket related commands.
Author:
Micha Kiener
  • Field Details

    • SPLITTING_CHARS

      protected static final char[] SPLITTING_CHARS
  • Constructor Details

    • AbstractDeskCmd

      public AbstractDeskCmd()
  • Method Details

    • extractWordsWithMaxSize

      protected String extractWordsWithMaxSize(String content, int maxCharacters, String postfix)
      Extracts content from a given string with a maximum length and returns it with full words and an optional ending.
      Parameters:
      content - the content to return the first words up to the maximum characters provided
      maxCharacters - the maximum number of characters to cut-off afterwards
      postfix - the optional string to be added to the end of the cut-off content
      Returns:
      extracted content
    • isSplittingChar

      protected boolean isSplittingChar(char character)
    • getConversationParticipants

      protected List<String> getConversationParticipants(String conversationId, CommandContext commandContext)
    • getIdentityService

      protected PlatformIdentityService getIdentityService(CommandContext commandContext)
    • getMessageService

      protected MessageService getMessageService(CommandContext commandContext)
    • getConversationService

      protected ConversationService getConversationService(CommandContext commandContext)
    • getDeskService

      protected DeskService getDeskService(CommandContext commandContext)