Class AuditMessage

java.lang.Object
cz.metacentrum.perun.core.api.AuditMessage

public class AuditMessage extends Object
This is a wrapper around AuditEvent with metadata, like ID, timestamp, and actor. It is used solely for reading purpose (once event is stored in DB).
Author:
Michal Stava, Pavel Zlámal
See Also:
  • Field Details

    • id

      protected int id
    • event

      protected AuditEvent event
    • actor

      protected String actor
    • createdAt

      protected String createdAt
    • createdByUid

      protected Integer createdByUid
  • Constructor Details

    • AuditMessage

      public AuditMessage()
    • AuditMessage

      public AuditMessage(int id, AuditEvent event, String actor, String createdAt, Integer createdByUid)
  • Method Details

    • getId

      public int getId()
    • setId

      public void setId(int id)
    • getEvent

      public AuditEvent getEvent()
    • setEvent

      public void setEvent(AuditEvent event)
    • getCreatedAt

      public String getCreatedAt()
    • setCreatedAt

      public void setCreatedAt(String createdAt)
    • getActor

      public String getActor()
    • setActor

      public void setActor(String actor)
    • getCreatedByUid

      public Integer getCreatedByUid()
    • setCreatedByUid

      public void setCreatedByUid(Integer createdByUid)
    • toString

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object