Interface UnknownChange

All Superinterfaces:
Change

public interface UnknownChange extends Change

Change triggered when the format of changes on an entity is not identified by Audit Log.


Example to create an instance using the builder pattern

     UnknownChange unknownChange = UnknownChange.builder()
             .change("{change}")
             .build()
 
  • Field Details

  • Method Details

    • getType

      @NotNull @NotNull String getType()
      Description copied from interface: Change

      Unique discriminator value to reliably deserialize the data type.

      Specified by:
      getType in interface Change
      Returns:
      type
    • getChange

      @NotNull @NotNull String getChange()

      Identifier for the type of modification.

      Specified by:
      getChange in interface Change
      Returns:
      change
    • getPreviousValue

      @NotNull @NotNull Object getPreviousValue()

      Value before the change.

      Returns:
      previousValue
    • getNextValue

      @NotNull @NotNull Object getNextValue()

      Value after the change.

      Returns:
      nextValue
    • setChange

      void setChange(String change)

      Identifier for the type of modification.

      Specified by:
      setChange in interface Change
      Parameters:
      change - value to be set
    • setPreviousValue

      void setPreviousValue(Object previousValue)

      Value before the change.

      Parameters:
      previousValue - value to be set
    • setNextValue

      void setNextValue(Object nextValue)

      Value after the change.

      Parameters:
      nextValue - value to be set
    • of

      static UnknownChange of()
      factory method
      Returns:
      instance of UnknownChange
    • of

      static UnknownChange of(UnknownChange template)
      factory method to create a shallow copy UnknownChange
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      @Nullable static UnknownChange deepCopy(@Nullable UnknownChange template)
      factory method to create a deep copy of UnknownChange
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static UnknownChangeBuilder builder()
      builder factory method for UnknownChange
      Returns:
      builder
    • builder

      static UnknownChangeBuilder builder(UnknownChange template)
      create builder for UnknownChange instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withUnknownChange

      default <T> T withUnknownChange(Function<UnknownChange,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<UnknownChange> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference