Class CasePageFormProvider
java.lang.Object
com.flowable.platform.service.form.PermissionAwareFormProvider
com.flowable.platform.service.casepage.CasePageFormProvider
- All Implemented Interfaces:
FormProvider
,PermissionServiceRegistryAware
,Aware
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CmmnEngine
protected final FormRepositoryService
protected final FormService
Fields inherited from class com.flowable.platform.service.form.PermissionAwareFormProvider
permissionServiceRegistry
-
Constructor Summary
ConstructorsConstructorDescriptionCasePageFormProvider
(CmmnEngine cmmnEngine, FormRepositoryService formRepositoryService, FormService formService) -
Method Summary
Modifier and TypeMethodDescriptiongetFormInfoForScopeDefinitionId
(String scopeDefinitionId, FormProviderContext context) Retrieve the form info for the givenscopeDefinitionId
in the providedcontext
.getFormInfoForScopeId
(String scopeId, FormProviderContext context) Retrieve the form info for the givenscopeId
in the providedcontext
protected String
The scope type that this form provider is responsible forprotected FormInfo
resolveFormInfo
(String formKey, String caseDefinitionId, String tenantId, String planItemDefinitionId) Methods inherited from class com.flowable.platform.service.form.PermissionAwareFormProvider
getCurrentTenantId, setPermissionServiceRegistry, validatePermissionOnHistoricScope, validatePermissionOnRuntimeScope, validatePermissionOnScope, validateReadPermissionOnScopeDefinition
-
Field Details
-
cmmnEngine
-
formRepositoryService
-
formService
-
-
Constructor Details
-
CasePageFormProvider
public CasePageFormProvider(CmmnEngine cmmnEngine, FormRepositoryService formRepositoryService, FormService formService)
-
-
Method Details
-
getPermissionScopeType
- Overrides:
getPermissionScopeType
in classPermissionAwareFormProvider
-
getScopeType
Description copied from interface:FormProvider
The scope type that this form provider is responsible for -
getFormInfoForScopeId
Description copied from interface:FormProvider
Retrieve the form info for the givenscopeId
in the providedcontext
- Parameters:
scopeId
- the scope instance idcontext
- the context under which the form info should be retrieved (nevernull
)- Returns:
- the form info for the scope
-
resolveFormInfo
-
getFormInfoForScopeDefinitionId
public FormInfo getFormInfoForScopeDefinitionId(String scopeDefinitionId, FormProviderContext context) Description copied from interface:FormProvider
Retrieve the form info for the givenscopeDefinitionId
in the providedcontext
. This is different compared withFormProvider.getFormInfoForScopeId(String, FormProviderContext)
such that it looks for a form for a given definition instead of an instance.- Parameters:
scopeDefinitionId
- the scope definition idcontext
- the context under which the form info should be retrieved (nevernull
)- Returns:
- the form info for the scope definition
-