Class ImmutableAuditLogEntity

java.lang.Object
com.atlassian.crowd.audit.ImmutableAuditLogEntity
All Implemented Interfaces:
AuditLogEntity

public class ImmutableAuditLogEntity extends Object implements AuditLogEntity
Concrete implementation of an object affected by an auditable event
  • Constructor Details

  • Method Details

    • getEntityType

      @Nullable public AuditLogEntityType getEntityType()
      Specified by:
      getEntityType in interface AuditLogEntity
      Returns:
      the type of the affected object
    • getEntityId

      @Nullable public Long getEntityId()
      Specified by:
      getEntityId in interface AuditLogEntity
      Returns:
      the identifier of the affected object (exact semantic depends on the entity type)
    • getEntityName

      @Nullable public String getEntityName()
      Description copied from interface: AuditLogEntity
      Returns the name of the affected object. This is particularly useful when the object does not exist anymore
      Specified by:
      getEntityName in interface AuditLogEntity
      Returns:
      the name of the affected object at the time the event occurred
    • isPrimary

      public boolean isPrimary()
      Specified by:
      isPrimary in interface AuditLogEntity
      Returns:
      Returns true if the object is the primary affected object in the transaction
    • from

      public static ImmutableAuditLogEntity from(AuditLogEntity original)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object