Class LogEntryBuilder.LogEntryImpl

java.lang.Object
org.nuxeo.audit.api.LogEntryBuilder.LogEntryImpl
All Implemented Interfaces:
Serializable, LogEntry, LogEntry
Enclosing class:
LogEntryBuilder

protected static class LogEntryBuilder.LogEntryImpl extends Object implements LogEntry
See Also:
  • Field Details

    • id

      protected final Long id
    • principalName

      protected final String principalName
    • eventId

      protected final String eventId
    • eventDate

      protected final Date eventDate
    • logDate

      protected final Date logDate
    • docUUID

      protected final String docUUID
    • docPath

      protected final String docPath
    • docType

      protected final String docType
    • category

      protected final String category
    • comment

      protected final String comment
    • docLifeCycle

      protected final String docLifeCycle
    • repositoryId

      protected final String repositoryId
    • extended

      protected final Map<String,Object> extended
  • Constructor Details

  • Method Details

    • getId

      public long getId()
      Specified by:
      getId in interface LogEntry
      Specified by:
      getId in interface LogEntry
      Returns:
      the log identifier
    • getPrincipalName

      public String getPrincipalName()
      Description copied from interface: LogEntry
      Returns the name of the principal who originated the log entry.
      Specified by:
      getPrincipalName in interface LogEntry
      Specified by:
      getPrincipalName in interface LogEntry
      Returns:
      the name of the principal who originated the log entry
    • getEventId

      public String getEventId()
      Description copied from interface: LogEntry
      Returns the identifier of the event that originated the log entry.
      Specified by:
      getEventId in interface LogEntry
      Specified by:
      getEventId in interface LogEntry
      Returns:
      the identifier of the event that originated the log entry
    • getEventDate

      public Date getEventDate()
      Description copied from interface: LogEntry
      Returns the date of the event that originated the log entry.
      Specified by:
      getEventDate in interface LogEntry
      Specified by:
      getEventDate in interface LogEntry
      Returns:
      the date of the event that originated the log entry
    • getLogDate

      public Date getLogDate()
      Specified by:
      getLogDate in interface LogEntry
      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.
    • getDocUUID

      public String getDocUUID()
      Description copied from interface: LogEntry
      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
      Specified by:
      getDocUUID in interface LogEntry
      Returns:
      the doc UUID related to the log entry.
    • getDocPath

      public String getDocPath()
      Description copied from interface: LogEntry
      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
      Specified by:
      getDocPath in interface LogEntry
      Returns:
      the doc path related to the log entry.
    • getDocType

      public String getDocType()
      Description copied from interface: LogEntry
      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
      Specified by:
      getDocType in interface LogEntry
      Returns:
      the doc type related to the log entry.
    • getCategory

      public String getCategory()
      Description copied from interface: LogEntry
      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
      Specified by:
      getCategory in interface LogEntry
      Returns:
      the category for this log entry.
    • getComment

      public String getComment()
      Description copied from interface: LogEntry
      Returns the associated comment for this log entry.
      Specified by:
      getComment in interface LogEntry
      Specified by:
      getComment in interface LogEntry
      Returns:
      the associated comment for this log entry
    • getDocLifeCycle

      public String getDocLifeCycle()
      Description copied from interface: LogEntry
      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
      Specified by:
      getDocLifeCycle in interface LogEntry
      Returns:
      the life cycle if the document related to the log entry.
    • getRepositoryId

      public String getRepositoryId()
      Description copied from interface: LogEntry
      Returns the repository id related to the log entry.
      Specified by:
      getRepositoryId in interface LogEntry
      Specified by:
      getRepositoryId in interface LogEntry
      Returns:
      the repository id
    • getExtended

      public Map<String,Object> getExtended()
      Description copied from interface: LogEntry
      Returns the extended information attached to this log entry.
      Specified by:
      getExtended in interface LogEntry
      Specified by:
      getExtended in interface LogEntry
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object