Class LogEntryImpl
- java.lang.Object
-
- org.nuxeo.ecm.platform.audit.impl.LogEntryImpl
-
- All Implemented Interfaces:
Serializable,LogEntry
public class LogEntryImpl extends Object implements LogEntry
Log entry implementation.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringentityTypeprotected UIAuditCommentuiComment
-
Constructor Summary
Constructors Constructor Description LogEntryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCategory()Returns the category for this log entry.StringgetComment()Returns the associated comment for this log entry.StringgetDocLifeCycle()Return the life cycle if the document related to the log entry.StringgetDocPath()Returns the doc path related to the log entry.StringgetDocType()Returns the doc type related to the log entry.StringgetDocUUID()Returns the doc UUID related to the log entry.DategetEventDate()Returns the date of the event that originated the log entry.StringgetEventId()Returns the identifier of the event that originated the log entry.Map<String,ExtendedInfo>getExtendedInfos()longgetId()DategetLogDate()UIAuditCommentgetPreprocessedComment()Return the comment preprocessed to be ready for display.StringgetPrincipalName()Returns the name of the principal who originated the log entry.StringgetRepositoryId()Returns the repository id related to the log entry.voidsetCategory(String category)voidsetComment(String comment)voidsetDocLifeCycle(String docLifeCycle)voidsetDocPath(String docPath)voidsetDocType(String docType)voidsetDocUUID(String docUUID)voidsetDocUUID(DocumentRef docRef)voidsetEventDate(Date eventDate)voidsetEventId(String eventId)voidsetExtendedInfos(Map<String,ExtendedInfo> infos)voidsetId(long id)voidsetLogDate(Date logDate)voidsetPreprocessedComment(UIAuditComment uiComment)voidsetPrincipalName(String principalName)voidsetRepositoryId(String repositoryId)StringtoString()
-
-
-
Field Detail
-
entityType
protected String entityType
-
uiComment
protected transient UIAuditComment uiComment
-
-
Method Detail
-
getPrincipalName
public String getPrincipalName()
Returns the name of the principal who originated the log entry.- Specified by:
getPrincipalNamein interfaceLogEntry- Returns:
- the name of the principal who originated the log entry
-
setPrincipalName
public void setPrincipalName(String principalName)
- Specified by:
setPrincipalNamein interfaceLogEntry
-
getEventId
public String getEventId()
Returns the identifier of the event that originated the log entry.- Specified by:
getEventIdin interfaceLogEntry- Returns:
- the identifier of the event that originated the log entry
-
setEventId
public void setEventId(String eventId)
- Specified by:
setEventIdin interfaceLogEntry
-
getEventDate
public Date getEventDate()
Returns the date of the event that originated the log entry.- Specified by:
getEventDatein interfaceLogEntry- Returns:
- the date of the event that originated the log entry
-
setEventDate
public void setEventDate(Date eventDate)
- Specified by:
setEventDatein interfaceLogEntry
-
getLogDate
public Date getLogDate()
- Specified by:
getLogDatein 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
public void setLogDate(Date logDate)
- Specified by:
setLogDatein interfaceLogEntry
-
getDocUUID
public 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:
getDocUUIDin interfaceLogEntry- Returns:
- the doc UUID related to the log entry.
-
setDocUUID
public void setDocUUID(String docUUID)
- Specified by:
setDocUUIDin interfaceLogEntry
-
setDocUUID
public void setDocUUID(DocumentRef docRef)
- Specified by:
setDocUUIDin interfaceLogEntry
-
getDocPath
public 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:
getDocPathin interfaceLogEntry- Returns:
- the doc path related to the log entry.
-
setDocPath
public void setDocPath(String docPath)
- Specified by:
setDocPathin interfaceLogEntry
-
getDocType
public 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:
getDocTypein interfaceLogEntry- Returns:
- the doc type related to the log entry.
-
setDocType
public void setDocType(String docType)
- Specified by:
setDocTypein interfaceLogEntry
-
getCategory
public String getCategory()
Returns the category for this log entry.This is defined at client level. Categories are not restricted in any ways.
- Specified by:
getCategoryin interfaceLogEntry- Returns:
- the category for this log entry.
-
setCategory
public void setCategory(String category)
- Specified by:
setCategoryin interfaceLogEntry
-
getComment
public String getComment()
Returns the associated comment for this log entry.- Specified by:
getCommentin interfaceLogEntry- Returns:
- the associated comment for this log entry
-
setComment
public void setComment(String comment)
- Specified by:
setCommentin interfaceLogEntry
-
getDocLifeCycle
public 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:
getDocLifeCyclein interfaceLogEntry- Returns:
- the life cycle if the document related to the log entry.
-
setDocLifeCycle
public void setDocLifeCycle(String docLifeCycle)
- Specified by:
setDocLifeCyclein interfaceLogEntry
-
getRepositoryId
public String getRepositoryId()
Returns the repository id related to the log entry.- Specified by:
getRepositoryIdin interfaceLogEntry- Returns:
- the repository id
-
setRepositoryId
public void setRepositoryId(String repositoryId)
- Specified by:
setRepositoryIdin interfaceLogEntry
-
getExtendedInfos
public Map<String,ExtendedInfo> getExtendedInfos()
- Specified by:
getExtendedInfosin interfaceLogEntry
-
setExtendedInfos
public void setExtendedInfos(Map<String,ExtendedInfo> infos)
- Specified by:
setExtendedInfosin interfaceLogEntry
-
getPreprocessedComment
public UIAuditComment getPreprocessedComment()
Description copied from interface:LogEntryReturn 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:
getPreprocessedCommentin interfaceLogEntry
-
setPreprocessedComment
public void setPreprocessedComment(UIAuditComment uiComment)
- Specified by:
setPreprocessedCommentin interfaceLogEntry
-
-