Class AuditRecord

    • 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

      • 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()
      • 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