Class AuditRecord
java.lang.Object
org.exoplatform.services.jcr.ext.audit.AuditRecord
- All Implemented Interfaces:
Comparable<AuditRecord>
Created by The eXo Platform SAS .
- Version:
- $Id: $
- Author:
- Gennady Azarenkov
-
Constructor Summary
ConstructorsConstructorDescriptionAuditRecord(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
Modifier and TypeMethodDescriptionintcompareTo(AuditRecord otherRecord) getDate()intjavax.jcr.Value[]javax.jcr.Value[]org.exoplatform.services.jcr.datamodel.InternalQNameReturns version UUID related to this audit record.Returns version name related to this audit record.
-
Constructor Details
-
AuditRecord
-
-
Method Details
-
getDate
-
getEventType
public int getEventType() -
getUserId
-
getEventTypeName
-
getPropertyName
public org.exoplatform.services.jcr.datamodel.InternalQName getPropertyName() -
getNewValues
public javax.jcr.Value[] getNewValues() -
getOldValues
public javax.jcr.Value[] getOldValues() -
compareTo
- Specified by:
compareToin interfaceComparable<AuditRecord>
-
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
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
-