Package org.nuxeo.audit.api
Interface LogEntry
- All Superinterfaces:
LogEntry
,Serializable
- All Known Implementing Classes:
LogEntryBuilder.LogEntryImpl
- Since:
- 2025.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault LogEntryBuilder
builder()
static LogEntryBuilder
Returns aLogEntryBuilder
to instantiate aLogEntry
.Returns the category for this log entry.Returns the associated comment for this log entry.Return the life cycle if the document related to the log entry.Returns the doc path related to the log entry.Returns the doc type related to the log entry.Returns the doc UUID related to the log entry.Returns the date of the event that originated the log entry.Returns the identifier of the event that originated the log entry.Returns the extended information attached to this log entry.default <R> R
getExtendedValue
(String key) long
getId()
Returns the name of the principal who originated the log entry.Returns the repository id related to the log entry.Methods inherited from interface org.nuxeo.ecm.platform.audit.api.LogEntry
getExtendedInfos, getPreprocessedComment, setCategory, setComment, setDocLifeCycle, setDocPath, setDocType, setDocUUID, setDocUUID, setEventDate, setEventId, setExtendedInfos, setId, setLogDate, setPreprocessedComment, setPrincipalName, setRepositoryId
-
Method Details
-
getId
long getId() -
getPrincipalName
String getPrincipalName()Returns the name of the principal who originated the log entry.- Specified by:
getPrincipalName
in interfaceLogEntry
- Returns:
- the name of the principal who originated the log entry
-
getEventId
String getEventId()Returns the identifier of the event that originated the log entry.- Specified by:
getEventId
in interfaceLogEntry
- Returns:
- the identifier of the event that originated the log entry
-
getLogDate
Date getLogDate()- Specified by:
getLogDate
in interfaceLogEntry
- 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
-
getEventDate
Date getEventDate()Returns the date of the event that originated the log entry.- Specified by:
getEventDate
in interfaceLogEntry
- Returns:
- the date of the event that originated the log entry
-
getDocUUID
String getDocUUID()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 interfaceLogEntry
- Returns:
- the doc UUID related to the log entry.
-
getDocPath
String getDocPath()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 interfaceLogEntry
- Returns:
- the doc path related to the log entry.
-
getDocType
String getDocType()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 interfaceLogEntry
- Returns:
- the doc type related to the log entry.
-
getCategory
String getCategory()Returns the category for this log entry.This is defined at client level. Categories are not restricted in any ways.
- Specified by:
getCategory
in interfaceLogEntry
- Returns:
- the category for this log entry.
-
getComment
String getComment()Returns the associated comment for this log entry.- Specified by:
getComment
in interfaceLogEntry
- Returns:
- the associated comment for this log entry
-
getDocLifeCycle
String getDocLifeCycle()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 interfaceLogEntry
- Returns:
- the life cycle if the document related to the log entry.
-
getRepositoryId
String getRepositoryId()Returns the repository id related to the log entry.- Specified by:
getRepositoryId
in interfaceLogEntry
- Returns:
- the repository id
-
getExtended
Returns the extended information attached to this log entry.- Specified by:
getExtended
in interfaceLogEntry
- Since:
- 2025.0
-
getExtendedValue
- Specified by:
getExtendedValue
in interfaceLogEntry
- Since:
- 2025.0
-
builder
- Since:
- 2025.0
-
builder
Returns aLogEntryBuilder
to instantiate aLogEntry
.- Since:
- 2025.0
-