org.exoplatform.services.jcr.ext.audit
Class AuditRecord

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

public class AuditRecord
extends java.lang.Object
implements java.lang.Comparable<AuditRecord>

Created by The eXo Platform SAS .

Version:
$Id: AuditRecord.java 35186 2009-08-07 14:23:43Z pnedonosko $
Author:
Gennady Azarenkov

Constructor Summary
AuditRecord(java.lang.String userId, int eventType, java.util.Calendar date, InternalQName propertyName, java.lang.String version, java.lang.String versionName)
           
 
Method Summary
 int compareTo(AuditRecord otherRecord)
           
 java.util.Calendar getDate()
           
 int getEventType()
           
 java.lang.String getEventTypeName()
           
 InternalQName getPropertyName()
           
 java.lang.String getUserId()
           
 java.lang.String getVersion()
          Returns version UUID related to this audit record.
 java.lang.String getVersionName()
          Returns version name related to this audit record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuditRecord

public AuditRecord(java.lang.String userId,
                   int eventType,
                   java.util.Calendar date,
                   InternalQName propertyName,
                   java.lang.String version,
                   java.lang.String versionName)
Method Detail

getDate

public java.util.Calendar getDate()

getEventType

public int getEventType()

getUserId

public java.lang.String getUserId()

getEventTypeName

public java.lang.String getEventTypeName()

getPropertyName

public InternalQName getPropertyName()

compareTo

public int compareTo(AuditRecord otherRecord)
Specified by:
compareTo in interface java.lang.Comparable<AuditRecord>

getVersion

public java.lang.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 java.lang.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


Copyright © 2011 eXo Platform SAS. All Rights Reserved.