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 |
engageEngineConfiguration, userGroupKeys, userId, userTenantId
Constructor and Description |
---|
CheckCreateConversationCommand(String userId,
Collection<String> userGroupKeys,
String userTenantId,
String parentConversationId,
ConversationBuilderImpl conversationBuilder,
EngageEngineConfiguration engageEngineConfiguration) |
Modifier and Type | Method and Description |
---|---|
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.
|
Optional<String> |
execute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) |
protected String |
getTenantId(Conversation conversation) |
checkBasicConversationAccess, createRuleInputForDefaultModel, evaluateMainParticipantType, evaluateMainParticipantType, evaluatePermissionsAndProcessResult, getDecisionKeyDefaultPermissions
evaluateDefaultPermissionOutput, evaluatePermissionRuleOutput, evaluatePermissionsAndProcessResult, executeAndLogPermissionModel, getEmptyListOnNullValue, getGroups, isGroupMember, isUserMemberOfGroup, isUserType, processErrorMessage, renderErrorMessage
protected String parentConversationId
protected ConversationBuilderImpl conversationBuilder
public CheckCreateConversationCommand(String userId, Collection<String> userGroupKeys, String userTenantId, String parentConversationId, ConversationBuilderImpl conversationBuilder, EngageEngineConfiguration engageEngineConfiguration)
public Optional<String> execute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
protected Optional<String> checkInviteParticipantToNewConversation(ConversationBuilderImpl conversationBuilder, String newParticipantUserId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
conversationBuilder
- 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.