Class DefaultAuditStrategyEvent

All Implemented Interfaces:
Event, Serializable

public class DefaultAuditStrategyEvent extends ConfigurationPropertyEvent
The DefaultAuditStrategyEvent indicates that the current application is using the DefaultAuditStrategy Hibernate Envers strategy. The ValidityAuditStrategy is a much better alternative since it can render much efficient audit log queries.
Since:
2.2.0
Author:
Vlad Mihalcea
See Also:
  • Constructor Details

    • DefaultAuditStrategyEvent

      public DefaultAuditStrategyEvent(String currentAuditStrategyClass, String suggestedAuditStrategyClass)
      Instantiate a DefaultAuditStrategyEvent using the provided AuditStrategy objects.
      Parameters:
      currentAuditStrategyClass - current Hibernate AuditStrategy
      suggestedAuditStrategyClass - suggested Hibernate AuditStrategy
  • Method Details

    • getCurrentAuditStrategyClass

      public String getCurrentAuditStrategyClass()
      Get the current Hibernate AuditStrategy.
      Returns:
      the current Hibernate AuditStrategy
    • getSuggestedAuditStrategyClass

      public String getSuggestedAuditStrategyClass()
      Get the suggested Hibernate AuditStrategy.
      Returns:
      the suggested Hibernate AuditStrategy
    • getPriority

      public Event.Priority getPriority()
      Get the Event.Priority of this Event
      Returns:
      the Event.Priority of this Event
    • getDescription

      public String getDescription()
      Get the String description of this Event
      Returns:
      the String description of this Event