public abstract class AbstractConversationPermissionCommand extends com.flowable.platform.service.permission.AbstractDmnBasedPermissionHelper<Conversation>
| Modifier and Type | Field and Description |
|---|---|
protected EngageEngineConfiguration |
engageEngineConfiguration |
protected Collection<String> |
userGroupKeys |
protected String |
userId |
protected String |
userTenantId |
| Constructor and Description |
|---|
AbstractConversationPermissionCommand(EngageEngineConfiguration engageEngineConfiguration,
String userId,
Collection<String> userGroupKeys,
String userTenantId) |
| 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(ConversationEntity conversation)
Evaluates the participant type of user within the specified conversation.
|
com.flowable.platform.service.permission.ParticipantType |
evaluateMainParticipantType(String userId,
Collection<String> userGroupKeys,
ConversationEntity conversation)
Evaluates the participant type of the given user within the specified conversation.
|
protected Optional<String> |
evaluatePermissionsAndProcessResult(String tenantId,
com.flowable.platform.service.permission.AuthorizedAction action,
Conversation scopedObject,
Map<String,Object> ruleInput,
String decisionModelKey,
String globalErrorMessageCode,
org.flowable.common.engine.impl.interceptor.CommandContext commandContext) |
protected String |
getDecisionKeyDefaultPermissions() |
protected String |
getTenantId(Conversation conversation) |
evaluateDefaultPermissionOutput, evaluatePermissionRuleOutput, evaluatePermissionsAndProcessResult, executeAndLogPermissionModel, getEmptyListOnNullValue, getGroups, isGroupMember, isUserMemberOfGroup, isUserType, processErrorMessage, renderErrorMessageprotected final EngageEngineConfiguration engageEngineConfiguration
protected String userId
protected Collection<String> userGroupKeys
protected String userTenantId
public AbstractConversationPermissionCommand(EngageEngineConfiguration engageEngineConfiguration, String userId, Collection<String> userGroupKeys, String userTenantId)
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(ConversationEntity conversation)
conversation - the conversation for which the participant type is evaluatedpublic com.flowable.platform.service.permission.ParticipantType evaluateMainParticipantType(String userId, Collection<String> userGroupKeys, ConversationEntity conversation)
userId - the id of the user to evaluate its participant typeuserGroupKeys - the group keys for the user to evaluate its participant typeconversation - the conversation for which the participant type is evaluatedprotected Optional<String> evaluatePermissionsAndProcessResult(String tenantId, com.flowable.platform.service.permission.AuthorizedAction action, Conversation scopedObject, Map<String,Object> ruleInput, String decisionModelKey, String globalErrorMessageCode, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
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)
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.