Class LogEntryImpl

java.lang.Object
org.nuxeo.ecm.platform.audit.impl.LogEntryImpl
All Implemented Interfaces:
Serializable, LogEntry

@Entity(name="LogEntry") @Deprecated(since="2025.0", forRemoval=true) public class LogEntryImpl extends Object implements LogEntry
Deprecated, for removal: This API element is subject to removal in a future version.
since 2025.0, use LogEntry.builder() instead
Log entry implementation.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected UIAuditComment
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the category for this log entry.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the associated comment for this log entry.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return the life cycle if the document related to the log entry.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the doc path related to the log entry.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the doc type related to the log entry.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the doc UUID related to the log entry.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the date of the event that originated the log entry.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the identifier of the event that originated the log entry.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the extended information attached to this log entry.
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the comment preprocessed to be ready for display (extract info about linked documents).
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the name of the principal who originated the log entry.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the repository id related to the log entry.
    void
    setCategory(String category)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setComment(String comment)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setDocLifeCycle(String docLifeCycle)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setDocPath(String docPath)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setDocType(String docType)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setDocUUID(String docUUID)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setEventDate(Date eventDate)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setEventId(String eventId)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setId(long id)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setLogDate(Date logDate)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setPrincipalName(String principalName)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setRepositoryId(String repositoryId)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.nuxeo.ecm.platform.audit.api.LogEntry

    getExtendedValue, setDocUUID
  • Field Details

    • entityType

      protected String entityType
      Deprecated, for removal: This API element is subject to removal in a future version.
    • uiComment

      protected transient UIAuditComment uiComment
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • LogEntryImpl

      public LogEntryImpl()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getId

      public long getId()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getId in interface LogEntry
      Returns:
      the log identifier
    • setId

      public void setId(long id)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setId in interface LogEntry
    • getPrincipalName

      public String getPrincipalName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the name of the principal who originated the log entry.
      Specified by:
      getPrincipalName in interface LogEntry
      Returns:
      the name of the principal who originated the log entry
    • setPrincipalName

      public void setPrincipalName(String principalName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setPrincipalName in interface LogEntry
    • getEventId

      public String getEventId()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the identifier of the event that originated the log entry.
      Specified by:
      getEventId in interface LogEntry
      Returns:
      the identifier of the event that originated the log entry
    • setEventId

      public void setEventId(String eventId)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setEventId in interface LogEntry
    • getEventDate

      public Date getEventDate()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the date of the event that originated the log entry.
      Specified by:
      getEventDate in interface LogEntry
      Returns:
      the date of the event that originated the log entry
    • setEventDate

      public void setEventDate(Date eventDate)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setEventDate in interface LogEntry
    • getLogDate

      public Date getLogDate()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getLogDate in interface LogEntry
      Returns:
      the date of the log insertion: this up to max transaction timeout later than eventDate. This date is useful for services such as Nuxeo Drive that need fine grained incremental near-monotonic access to the audit log.
      Since:
      5.7, 5.6-HF16
    • setLogDate

      public void setLogDate(Date logDate)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setLogDate in interface LogEntry
    • getDocUUID

      public String getDocUUID()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the doc UUID related to the log entry.

      It might be null if the event that originated the event is noe bound to any document.

      Specified by:
      getDocUUID in interface LogEntry
      Returns:
      the doc UUID related to the log entry.
    • setDocUUID

      public void setDocUUID(String docUUID)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setDocUUID in interface LogEntry
    • getDocPath

      public String getDocPath()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the doc path related to the log entry.

      It might be null if the event that originated the event is noe bound to any document.

      Specified by:
      getDocPath in interface LogEntry
      Returns:
      the doc path related to the log entry.
    • setDocPath

      public void setDocPath(String docPath)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setDocPath in interface LogEntry
    • getDocType

      public String getDocType()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the doc type related to the log entry.

      It might be null if the event that originated the event is not bound to any document.

      Specified by:
      getDocType in interface LogEntry
      Returns:
      the doc type related to the log entry.
    • setDocType

      public void setDocType(String docType)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setDocType in interface LogEntry
    • getCategory

      public String getCategory()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the category for this log entry.

      This is defined at client level. Categories are not restricted in any ways.

      Specified by:
      getCategory in interface LogEntry
      Returns:
      the category for this log entry.
    • setCategory

      public void setCategory(String category)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setCategory in interface LogEntry
    • getComment

      public String getComment()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the associated comment for this log entry.
      Specified by:
      getComment in interface LogEntry
      Returns:
      the associated comment for this log entry
    • setComment

      public void setComment(String comment)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setComment in interface LogEntry
    • getDocLifeCycle

      public String getDocLifeCycle()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return the life cycle if the document related to the log entry.

      It might be null if the event that originated the event is noe bound to any document.

      Specified by:
      getDocLifeCycle in interface LogEntry
      Returns:
      the life cycle if the document related to the log entry.
    • setDocLifeCycle

      public void setDocLifeCycle(String docLifeCycle)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setDocLifeCycle in interface LogEntry
    • getRepositoryId

      public String getRepositoryId()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the repository id related to the log entry.
      Specified by:
      getRepositoryId in interface LogEntry
      Returns:
      the repository id
    • setRepositoryId

      public void setRepositoryId(String repositoryId)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setRepositoryId in interface LogEntry
    • getExtended

      public Map<String,Object> getExtended()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: LogEntry
      Returns the extended information attached to this log entry.
      Specified by:
      getExtended in interface LogEntry
    • getExtendedInfos

      public Map<String,ExtendedInfo> getExtendedInfos()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getExtendedInfos in interface LogEntry
    • setExtendedInfos

      public void setExtendedInfos(Map<String,ExtendedInfo> infos)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setExtendedInfos in interface LogEntry
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class Object
    • getPreprocessedComment

      public UIAuditComment getPreprocessedComment()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: LogEntry
      Returns the comment preprocessed to be ready for display (extract info about linked documents).
      Specified by:
      getPreprocessedComment in interface LogEntry
    • setPreprocessedComment

      public void setPreprocessedComment(UIAuditComment uiComment)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setPreprocessedComment in interface LogEntry