Class PermissionAwareFormProvider
java.lang.Object
com.flowable.platform.service.form.PermissionAwareFormProvider
- All Implemented Interfaces:
FormProvider
,PermissionServiceRegistryAware
,Aware
- Direct Known Subclasses:
BpmnFormProvider
,CasePageFormProvider
,CmmnFormProvider
,TaskFormProvider
public abstract class PermissionAwareFormProvider
extends Object
implements FormProvider, PermissionServiceRegistryAware
- Author:
- Filip Hrisafov
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected String
void
setPermissionServiceRegistry
(PermissionServiceRegistry permissionServiceRegistry) Set the PermissionRegistry that this object should use.protected void
validatePermissionOnHistoricScope
(String scopeId, FormProviderContext context, String defaultPermission) protected void
validatePermissionOnRuntimeScope
(String scopeId, FormProviderContext context, String defaultPermission) protected void
validatePermissionOnScope
(String scopeId, FormProviderContext context, String defaultPermission) protected void
validateReadPermissionOnScopeDefinition
(String scopeDefinitionId) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.flowable.core.service.form.FormProvider
getFormInfoForScopeDefinitionId, getFormInfoForScopeId, getScopeType
-
Field Details
-
permissionServiceRegistry
-
-
Constructor Details
-
PermissionAwareFormProvider
public PermissionAwareFormProvider()
-
-
Method Details
-
getPermissionScopeType
-
validatePermissionOnScope
protected void validatePermissionOnScope(String scopeId, FormProviderContext context, String defaultPermission) -
validatePermissionOnRuntimeScope
protected void validatePermissionOnRuntimeScope(String scopeId, FormProviderContext context, String defaultPermission) -
validatePermissionOnHistoricScope
protected void validatePermissionOnHistoricScope(String scopeId, FormProviderContext context, String defaultPermission) -
validateReadPermissionOnScopeDefinition
-
setPermissionServiceRegistry
Description copied from interface:PermissionServiceRegistryAware
Set the PermissionRegistry that this object should use.- Specified by:
setPermissionServiceRegistry
in interfacePermissionServiceRegistryAware
- Parameters:
permissionServiceRegistry
- to be used by this object
-
getCurrentTenantId
-