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
-
-
Field Summary
Fields Modifier and Type Field Description protected ConversationBuilderImpl
conversationBuilder
protected String
parentConversationId
-
Fields inherited from class com.flowable.engage.engine.impl.permission.cmd.AbstractConversationPermissionCommand
engageEngineConfiguration, userGroupKeys, userId, userTenantId
-
Fields inherited from class com.flowable.platform.service.permission.AbstractDmnBasedPermissionHelper
NONE_VALUE, OUTPUT_KEY_ERROR_MESSAGE, OUTPUT_KEY_ERROR_MESSAGE_CODE, OUTPUT_KEY_GROUP_NEEDED, OUTPUT_KEY_PERMISSION
-
-
Constructor Summary
Constructors Constructor Description CheckCreateConversationCommand(String userId, Collection<String> userGroupKeys, String userTenantId, String parentConversationId, ConversationBuilderImpl conversationBuilder, EngageEngineConfiguration engageEngineConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class com.flowable.engage.engine.impl.permission.cmd.AbstractConversationPermissionCommand
checkBasicConversationAccess, createRuleInputForDefaultModel, evaluateMainParticipantType, evaluateMainParticipantType, evaluatePermissionsAndProcessResult, getDecisionKeyDefaultPermissions
-
Methods inherited from class com.flowable.platform.service.permission.AbstractDmnBasedPermissionHelper
evaluateDefaultPermissionOutput, evaluatePermissionRuleOutput, evaluatePermissionsAndProcessResult, executeAndLogPermissionModel, getEmptyListOnNullValue, getGroups, isGroupMember, isUserMemberOfGroup, isUserType, processErrorMessage, renderErrorMessage
-
-
-
-
Field Detail
-
parentConversationId
protected String parentConversationId
-
conversationBuilder
protected ConversationBuilderImpl conversationBuilder
-
-
Constructor Detail
-
CheckCreateConversationCommand
public CheckCreateConversationCommand(String userId, Collection<String> userGroupKeys, String userTenantId, String parentConversationId, ConversationBuilderImpl conversationBuilder, EngageEngineConfiguration engageEngineConfiguration)
-
-
Method Detail
-
execute
public Optional<String> execute(CommandContext commandContext)
-
checkInviteParticipantToNewConversation
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.- 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 classAbstractConversationPermissionCommand
-
-