Class AuditRecord

java.lang.Object
org.exoplatform.services.jcr.ext.audit.AuditRecord
All Implemented Interfaces:
Comparable<AuditRecord>

public class AuditRecord extends Object implements Comparable<AuditRecord>
Created by The eXo Platform SAS .
Version:
$Id: $
Author:
Gennady Azarenkov
  • Constructor Details

    • AuditRecord

      public AuditRecord(String userId, int eventType, Calendar date, org.exoplatform.services.jcr.datamodel.InternalQName propertyName, javax.jcr.Value[] oldValue, javax.jcr.Value[] newValue, String version, String versionName)
  • Method Details

    • getDate

      public Calendar getDate()
    • getEventType

      public int getEventType()
    • getUserId

      public String getUserId()
    • getEventTypeName

      public String getEventTypeName()
    • getPropertyName

      public org.exoplatform.services.jcr.datamodel.InternalQName getPropertyName()
    • getNewValues

      public javax.jcr.Value[] getNewValues()
    • getOldValues

      public javax.jcr.Value[] getOldValues()
    • compareTo

      public int compareTo(AuditRecord otherRecord)
      Specified by:
      compareTo in interface Comparable<AuditRecord>
    • getVersion

      public String getVersion()
      Returns version UUID related to this audit record.
      Use Session.getNodeByUUID(String) to obtain the version Node instance.
      NOTE: Version UUID will has no sense if version will be removed.
      Returns:
      String with version UUID or null if auditable node was not mix:versionable at the audit record time
    • getVersionName

      public String getVersionName()
      Returns version name related to this audit record. Version name for information purpose only.
      NOTE: Version name can be helpful after the version will be removed.
      Returns:
      String in format VERSION_NAME 'VERSION_LABEL_1' 'VERSION_LABEL_2' ... 'VERSION_LABEL_N' or null if auditable node was not mix:versionable at the audit record time