Modifier and Type | Field and Description |
---|---|
protected ConversationBuilderImpl |
conversationBuilder |
protected String |
parentConversationId |
engageEngineConfiguration, userGroupKeys, userId, userTenantId
NONE_VALUE, OUTPUT_KEY_ERROR_MESSAGE, OUTPUT_KEY_ERROR_MESSAGE_CODE, OUTPUT_KEY_GROUP_NEEDED, OUTPUT_KEY_PERMISSION
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,
CommandContext commandContext)
Evaluates the permissions for the given user when inviting a new participant to a new (initial) conversation.
|
Optional<String> |
execute(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(CommandContext commandContext)
protected Optional<String> checkInviteParticipantToNewConversation(ConversationBuilderImpl conversationBuilder, String newParticipantUserId, 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