Class LogEntryImpl
java.lang.Object
org.nuxeo.ecm.platform.audit.impl.LogEntryImpl
- All Implemented Interfaces:
Serializable
,LogEntry
Log entry implementation.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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.long
getId()
Return the comment preprocessed to be ready for display.Returns the name of the principal who originated the log entry.Returns the repository id related to the log entry.void
setCategory
(String category) void
setComment
(String comment) void
setDocLifeCycle
(String docLifeCycle) void
setDocPath
(String docPath) void
setDocType
(String docType) void
setDocUUID
(String docUUID) void
setDocUUID
(DocumentRef docRef) void
setEventDate
(Date eventDate) void
setEventId
(String eventId) void
setExtendedInfos
(Map<String, ExtendedInfo> infos) void
setId
(long id) void
setLogDate
(Date logDate) void
setPreprocessedComment
(UIAuditComment uiComment) void
setPrincipalName
(String principalName) void
setRepositoryId
(String repositoryId) toString()
-
Field Details
-
entityType
-
uiComment
-
-
Constructor Details
-
LogEntryImpl
public LogEntryImpl()
-
-
Method Details
-
getId
public long getId() -
setId
public void setId(long id) -
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
-
setPrincipalName
- Specified by:
setPrincipalName
in interfaceLogEntry
-
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
-
setEventId
- Specified by:
setEventId
in interfaceLogEntry
-
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
-
setEventDate
- Specified by:
setEventDate
in interfaceLogEntry
-
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
-
setLogDate
- Specified by:
setLogDate
in interfaceLogEntry
-
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.
-
setDocUUID
- Specified by:
setDocUUID
in interfaceLogEntry
-
setDocUUID
- Specified by:
setDocUUID
in interfaceLogEntry
-
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.
-
setDocPath
- Specified by:
setDocPath
in interfaceLogEntry
-
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.
-
setDocType
- Specified by:
setDocType
in interfaceLogEntry
-
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.
-
setCategory
- Specified by:
setCategory
in interfaceLogEntry
-
getComment
Returns the associated comment for this log entry.- Specified by:
getComment
in interfaceLogEntry
- Returns:
- the associated comment for this log entry
-
setComment
- Specified by:
setComment
in interfaceLogEntry
-
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.
-
setDocLifeCycle
- Specified by:
setDocLifeCycle
in interfaceLogEntry
-
getRepositoryId
Returns the repository id related to the log entry.- Specified by:
getRepositoryId
in interfaceLogEntry
- Returns:
- the repository id
-
setRepositoryId
- Specified by:
setRepositoryId
in interfaceLogEntry
-
getExtendedInfos
- Specified by:
getExtendedInfos
in interfaceLogEntry
-
setExtendedInfos
- Specified by:
setExtendedInfos
in interfaceLogEntry
-
toString
-
getPreprocessedComment
Description copied from interface:LogEntry
Return the comment preprocessed to be ready for display. (extract info about linked documents) Only available when accessed via the entry is fetched via theAuditPageProvider
- Specified by:
getPreprocessedComment
in interfaceLogEntry
-
setPreprocessedComment
- Specified by:
setPreprocessedComment
in interfaceLogEntry
-