public class CheckCreateConversationCommand extends AbstractConversationPermissionCommand implements org.flowable.common.engine.impl.interceptor.Command<Optional<String>>
Modifier and Type | Field and Description |
---|---|
protected ConversationBuilderImpl |
conversationBuilder |
protected String |
parentConversationId |
protected String |
userId |
engageEngineConfiguration
Constructor and Description |
---|
CheckCreateConversationCommand(String userId,
String parentConversationId,
ConversationBuilderImpl conversationBuilder,
EngageEngineConfiguration engageEngineConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected Optional<String> |
checkInviteParticipantToNewConversation(String userId,
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.
|
Optional<String> |
execute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) |
protected String |
getTenantId(Conversation conversation) |
checkBasicConversationAccess, createRuleInputForDefaultModel, evaluateMainParticipantType, getDecisionKeyDefaultPermissions
evaluateDefaultPermissionOutput, evaluatePermissionRuleOutput, evaluatePermissionsAndProcessResult, executeAndLogPermissionModel, getEmptyListOnNullValue, getGroups, isGroupMember, isUserMemberOfGroup, isUserType, processErrorMessage, renderErrorMessage
protected String userId
protected String parentConversationId
protected ConversationBuilderImpl conversationBuilder
public CheckCreateConversationCommand(String userId, String parentConversationId, ConversationBuilderImpl conversationBuilder, EngageEngineConfiguration engageEngineConfiguration)
public Optional<String> execute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
protected Optional<String> checkInviteParticipantToNewConversation(String userId, ConversationBuilderImpl conversationBuilder, String newParticipantUserId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
userId
- the id of the user to check the permissionsconversationBuilder
- the conversation builder containing all the data of the new conversation to be builtprotected String getTenantId(Conversation conversation)
getTenantId
in class AbstractConversationPermissionCommand
Copyright © 2019. All rights reserved.