Class CheckCreateConversationCommand

All Implemented Interfaces:
org.flowable.common.engine.impl.interceptor.Command<Optional<String>>

public class CheckCreateConversationCommand extends AbstractConversationPermissionCommand implements org.flowable.common.engine.impl.interceptor.Command<Optional<String>>
  • Field Details

  • Constructor Details

  • Method Details

    • execute

      public Optional<String> execute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
      Specified by:
      execute in interface org.flowable.common.engine.impl.interceptor.Command<Optional<String>>
    • checkInviteParticipantToNewConversation

      protected Optional<String> checkInviteParticipantToNewConversation(ConversationBuilderImpl conversationBuilder, String newParticipantUserId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
      Evaluates the permissions for the given user when inviting a new participant to a new (initial) conversation.
      Parameters:
      conversationBuilder - the conversation builder containing all the data of the new conversation to be built
      Returns:
      the permission error message, if permission is denied to join the new participant or no message, if permission is granted
    • getTenantId

      protected String getTenantId(Conversation conversation)
      Overrides:
      getTenantId in class AbstractConversationPermissionCommand