Class AbstractDeskCmd<T>

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

public abstract class AbstractDeskCmd<T>
extends java.lang.Object
implements org.flowable.common.engine.impl.interceptor.Command<T>
An abstract base class for desk and ticket related commands.
Author:
Micha Kiener
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected static char[] SPLITTING_CHARS  
  • Constructor Summary

    Constructors 
    Constructor Description
    AbstractDeskCmd()  
  • Method Summary

    Modifier and Type Method Description
    protected java.lang.String extractWordsWithMaxSize​(java.lang.String content, int maxCharacters, java.lang.String postfix)
    Extracts content from a given string with a maximum length and returns it with full words and an optional ending.
    protected java.util.List<java.lang.String> getConversationParticipants​(java.lang.String conversationId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)  
    protected ConversationService getConversationService​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)  
    protected DeskService getDeskService​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)  
    protected com.flowable.core.idm.api.PlatformIdentityService getIdentityService​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)  
    protected MessageService getMessageService​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)  
    protected boolean isSplittingChar​(char character)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.flowable.common.engine.impl.interceptor.Command

    execute
  • Field Details

  • Constructor Details

  • Method Details

    • extractWordsWithMaxSize

      protected java.lang.String extractWordsWithMaxSize​(java.lang.String content, int maxCharacters, java.lang.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 java.util.List<java.lang.String> getConversationParticipants​(java.lang.String conversationId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • getIdentityService

      protected com.flowable.core.idm.api.PlatformIdentityService getIdentityService​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • getMessageService

      protected MessageService getMessageService​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • getConversationService

      protected ConversationService getConversationService​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • getDeskService

      protected DeskService getDeskService​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)