eXo JCR :: Ext :: Services 1.15.10-GA

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

java.lang.Object
  extended by 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 Summary
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 Summary
 int compareTo(AuditRecord otherRecord)
           
 Calendar getDate()
           
 int getEventType()
           
 String getEventTypeName()
           
 javax.jcr.Value[] getNewValues()
           
 javax.jcr.Value[] getOldValues()
           
 org.exoplatform.services.jcr.datamodel.InternalQName getPropertyName()
           
 String getUserId()
           
 String getVersion()
          Returns version UUID related to this audit record.
 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(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 Detail

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

eXo JCR :: Ext :: Services 1.15.10-GA

Copyright © 2014 eXo Platform SAS. All Rights Reserved.