Class DefaultRestrictedVariableInterceptor
java.lang.Object
org.finos.fluxnova.bpm.engine.impl.variable.DefaultRestrictedVariableInterceptor
- All Implemented Interfaces:
VariableInterceptor
Default implementation of VariableInterceptor that performs
authorization checks and filters restricted variables when unauthorized.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckAuthorization(VariablePermissions permission, boolean restricted) protected booleanhasNoEffectiveChange(CoreVariableInstance variableInstance, TypedValue newValue) interceptCreateVariable(CoreVariableInstance variableInstance) Intercepts a variable create operation.voidinterceptDeleteVariable(CoreVariableInstance variableInstance) Intercepts a variable delete operation.interceptGetHistoricVariable(HistoricVariableInstance historicVariableInstance, TypedValue value) Intercepts a historic variable read operation.interceptGetVariable(VariableInstance variableInstance, TypedValue value) Intercepts a variable read operation.interceptUpdateVariable(CoreVariableInstance variableInstance, TypedValue newValue) Intercepts a variable update operation.protected booleanisAuthorized(VariablePermissions permission)
-
Constructor Details
-
DefaultRestrictedVariableInterceptor
public DefaultRestrictedVariableInterceptor()
-
-
Method Details
-
interceptGetVariable
Description copied from interface:VariableInterceptorIntercepts a variable read operation.- Specified by:
interceptGetVariablein interfaceVariableInterceptor- Parameters:
variableInstance- the variable instance being readvalue- the raw typed value- Returns:
- the intercepted typed value (may be null if filtered)
-
interceptGetHistoricVariable
public TypedValue interceptGetHistoricVariable(HistoricVariableInstance historicVariableInstance, TypedValue value) Description copied from interface:VariableInterceptorIntercepts a historic variable read operation.- Specified by:
interceptGetHistoricVariablein interfaceVariableInterceptor- Parameters:
historicVariableInstance- the historic variable instance being readvalue- the raw typed value- Returns:
- the intercepted typed value (may be null if filtered)
-
interceptCreateVariable
Description copied from interface:VariableInterceptorIntercepts a variable create operation.- Specified by:
interceptCreateVariablein interfaceVariableInterceptor- Parameters:
variableInstance- the variable instance being created- Returns:
- the variable instance to persist (may be the same instance, but must not be null)
-
interceptUpdateVariable
public TypedValue interceptUpdateVariable(CoreVariableInstance variableInstance, TypedValue newValue) Description copied from interface:VariableInterceptorIntercepts a variable update operation.- Specified by:
interceptUpdateVariablein interfaceVariableInterceptor- Parameters:
variableInstance- the variable instance being updatednewValue- the new typed value being set- Returns:
- the value to persist (may be the same value, but must not be null)
-
interceptDeleteVariable
Description copied from interface:VariableInterceptorIntercepts a variable delete operation.- Specified by:
interceptDeleteVariablein interfaceVariableInterceptor- Parameters:
variableInstance- the variable instance being deleted
-
checkAuthorization
-
isAuthorized
-
hasNoEffectiveChange
-