Class CheckCreateConversationCommand

java.lang.Object
com.flowable.platform.service.permission.AbstractDmnBasedPermissionHelper<Conversation>
com.flowable.engage.engine.impl.permission.cmd.AbstractConversationPermissionCommand
com.flowable.engage.engine.impl.permission.cmd.CheckCreateConversationCommand
All Implemented Interfaces:
org.flowable.common.engine.impl.interceptor.Command<java.util.Optional<java.lang.String>>

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

  • Constructor Details

  • Method Details

    • execute

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

      protected java.util.Optional<java.lang.String> checkInviteParticipantToNewConversation​(ConversationBuilderImpl conversationBuilder, java.lang.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 java.lang.String getTenantId​(Conversation conversation)
      Overrides:
      getTenantId in class AbstractConversationPermissionCommand