Interface VariableInterceptor
- All Known Implementing Classes:
DefaultRestrictedVariableInterceptor
public interface VariableInterceptor
Interceptor for variable access, allowing transformations like masking.
-
Method Summary
Modifier and TypeMethodDescriptioninterceptCreateVariable(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.
-
Method Details
-
interceptGetVariable
Intercepts a variable read operation.- Parameters:
variableInstance- the variable instance being readvalue- the raw typed value- Returns:
- the intercepted typed value (may be null if filtered)
-
interceptGetHistoricVariable
TypedValue interceptGetHistoricVariable(HistoricVariableInstance historicVariableInstance, TypedValue value) Intercepts a historic variable read operation.- Parameters:
historicVariableInstance- the historic variable instance being readvalue- the raw typed value- Returns:
- the intercepted typed value (may be null if filtered)
-
interceptCreateVariable
Intercepts a variable create operation.- Parameters:
variableInstance- the variable instance being created- Returns:
- the variable instance to persist (may be the same instance, but must not be null)
-
interceptUpdateVariable
Intercepts a variable update operation.- 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
Intercepts a variable delete operation.- Parameters:
variableInstance- the variable instance being deleted
-