Class ValueEvent

java.lang.Object
mc.core.service.event.Event<String>
mc.core.domain.base.aspect.ValueEvent
All Implemented Interfaces:
Serializable

public class ValueEvent extends mc.core.service.event.Event<String>
low level event send on every attribute value change reported in DataValueHandler/DVStrategy. event is not tracked in statistics store. can be observed to do additional change reporting or value history.
See Also:
  • Method Details

    • parameter

      public ValueEvent parameter(Object key, Object value)
      Overrides:
      parameter in class mc.core.service.event.Event<String>
    • getAction

      public String getAction()
      key for action: add, update, delete
    • getEntity

      public ComplexEntity getEntity()
      target entity. never null
    • getAttribute

      public Attribute getAttribute()
      target attribute. never null
    • getLocale

      public Locale getLocale()
      locale of value or current content locale. never null
    • getTerritory

      public Optional<Territory> getTerritory()
      territory of value. optional
    • getDataValueSet

      public Optional<DataValueSet> getDataValueSet()
      DataValueSet of changed value. optional
    • getDataValue

      public Optional<DataValue> getDataValue()
      DataValue of changed value. optional
    • getEntityToAttribute

      public Optional<EntityToAttribute> getEntityToAttribute()
      EntityToAttribute of changed value. optional
    • getOldValueDisplay

      public String getOldValueDisplay()
      value display of current dataValue or set. optional
    • getNewValueDisplay

      public String getNewValueDisplay()
      value display of new dataValue or set. optional
    • getAttributeDisplay

      public String getAttributeDisplay()
      display of attribute in current locale for reporting. never null
    • toString

      public String toString()
      logging/debugging
      Overrides:
      toString in class mc.core.service.event.Event<String>