public abstract class AbstractConversationPermissionCommand extends com.flowable.platform.service.permission.AbstractDmnBasedPermissionHelper<Conversation>
Modifier and Type | Field and Description |
---|---|
protected EngageEngineConfiguration |
engageEngineConfiguration |
Constructor and Description |
---|
AbstractConversationPermissionCommand(EngageEngineConfiguration engageEngineConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected Optional<String> |
checkBasicConversationAccess(org.flowable.common.engine.impl.interceptor.CommandContext commandContext,
String userId,
Conversation conversation,
com.flowable.platform.service.permission.ParticipantType participantType)
Basic conversation access check if the participant type has already been resolved.
|
protected Map<String,Object> |
createRuleInputForDefaultModel(String userId,
com.flowable.platform.service.permission.AuthorizedAction action,
Conversation scopedObject,
Map<String,Object> detailedRuleInput,
org.flowable.common.engine.impl.interceptor.CommandContext commandContext) |
com.flowable.platform.service.permission.ParticipantType |
evaluateMainParticipantType(String userId,
ConversationEntity conversation)
Evaluates the participant type of the given user within the specified conversation.
|
protected String |
getDecisionKeyDefaultPermissions() |
protected String |
getTenantId(Conversation conversation) |
evaluateDefaultPermissionOutput, evaluatePermissionRuleOutput, evaluatePermissionsAndProcessResult, executeAndLogPermissionModel, getEmptyListOnNullValue, getGroups, isGroupMember, isUserMemberOfGroup, isUserType, processErrorMessage, renderErrorMessage
protected final EngageEngineConfiguration engageEngineConfiguration
public AbstractConversationPermissionCommand(EngageEngineConfiguration engageEngineConfiguration)
protected Optional<String> checkBasicConversationAccess(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, String userId, Conversation conversation, com.flowable.platform.service.permission.ParticipantType participantType)
protected String getTenantId(Conversation conversation)
getTenantId
in class com.flowable.platform.service.permission.AbstractDmnBasedPermissionHelper<Conversation>
public com.flowable.platform.service.permission.ParticipantType evaluateMainParticipantType(String userId, ConversationEntity conversation)
userId
- the id of the user to evaluate its participant typeconversation
- the conversation for which the participant type is evaluatedprotected Map<String,Object> createRuleInputForDefaultModel(String userId, com.flowable.platform.service.permission.AuthorizedAction action, Conversation scopedObject, Map<String,Object> detailedRuleInput, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
createRuleInputForDefaultModel
in class com.flowable.platform.service.permission.AbstractDmnBasedPermissionHelper<Conversation>
protected String getDecisionKeyDefaultPermissions()
getDecisionKeyDefaultPermissions
in class com.flowable.platform.service.permission.AbstractDmnBasedPermissionHelper<Conversation>
Copyright © 2019. All rights reserved.