Interface VariableInterceptor

All Known Implementing Classes:
DefaultRestrictedVariableInterceptor

public interface VariableInterceptor
Interceptor for variable access, allowing transformations like masking.
  • Method Details

    • interceptGetVariable

      TypedValue interceptGetVariable(VariableInstance variableInstance, TypedValue value)
      Intercepts a variable read operation.
      Parameters:
      variableInstance - the variable instance being read
      value - 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 read
      value - the raw typed value
      Returns:
      the intercepted typed value (may be null if filtered)
    • interceptCreateVariable

      CoreVariableInstance interceptCreateVariable(CoreVariableInstance variableInstance)
      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

      TypedValue interceptUpdateVariable(CoreVariableInstance variableInstance, TypedValue newValue)
      Intercepts a variable update operation.
      Parameters:
      variableInstance - the variable instance being updated
      newValue - the new typed value being set
      Returns:
      the value to persist (may be the same value, but must not be null)
    • interceptDeleteVariable

      void interceptDeleteVariable(CoreVariableInstance variableInstance)
      Intercepts a variable delete operation.
      Parameters:
      variableInstance - the variable instance being deleted