Package org.nuxeo.audit.api
Class LogEntryBuilder.LogEntryImpl
java.lang.Object
org.nuxeo.audit.api.LogEntryBuilder.LogEntryImpl
- All Implemented Interfaces:
Serializable
,LogEntry
,LogEntry
- Enclosing class:
LogEntryBuilder
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final String
protected final String
protected final String
protected final String
protected final String
protected final String
protected final Date
protected final String
protected final Long
protected final Date
protected final String
protected final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
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.long
getId()
Returns the name of the principal who originated the log entry.Returns the repository id related to the log entry.int
hashCode()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.nuxeo.audit.api.LogEntry
builder, getExtendedValue
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
-
Field Details
-
id
-
principalName
-
eventId
-
eventDate
-
logDate
-
docUUID
-
docPath
-
docType
-
category
-
comment
-
docLifeCycle
-
repositoryId
-
extended
-
-
Constructor Details
-
LogEntryImpl
-
-
Method Details
-
getId
public long getId() -
getPrincipalName
Description copied from interface:LogEntry
Returns the name of the principal who originated the log entry.- Specified by:
getPrincipalName
in interfaceLogEntry
- Specified by:
getPrincipalName
in interfaceLogEntry
- Returns:
- the name of the principal who originated the log entry
-
getEventId
Description copied from interface:LogEntry
Returns the identifier of the event that originated the log entry.- Specified by:
getEventId
in interfaceLogEntry
- Specified by:
getEventId
in interfaceLogEntry
- Returns:
- the identifier of the event that originated the log entry
-
getEventDate
Description copied from interface:LogEntry
Returns the date of the event that originated the log entry.- Specified by:
getEventDate
in interfaceLogEntry
- Specified by:
getEventDate
in interfaceLogEntry
- Returns:
- the date of the event that originated the log entry
-
getLogDate
- Specified by:
getLogDate
in interfaceLogEntry
- 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.
-
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 interfaceLogEntry
- Specified by:
getDocUUID
in interfaceLogEntry
- Returns:
- the doc UUID related to the log entry.
-
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 interfaceLogEntry
- Specified by:
getDocPath
in interfaceLogEntry
- Returns:
- the doc path related to the log entry.
-
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 interfaceLogEntry
- Specified by:
getDocType
in interfaceLogEntry
- Returns:
- the doc type related to the log entry.
-
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 interfaceLogEntry
- Specified by:
getCategory
in interfaceLogEntry
- Returns:
- the category for this log entry.
-
getComment
Description copied from interface:LogEntry
Returns the associated comment for this log entry.- Specified by:
getComment
in interfaceLogEntry
- Specified by:
getComment
in interfaceLogEntry
- Returns:
- the associated comment for this log entry
-
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 interfaceLogEntry
- Specified by:
getDocLifeCycle
in interfaceLogEntry
- Returns:
- the life cycle if the document related to the log entry.
-
getRepositoryId
Description copied from interface:LogEntry
Returns the repository id related to the log entry.- Specified by:
getRepositoryId
in interfaceLogEntry
- Specified by:
getRepositoryId
in interfaceLogEntry
- Returns:
- the repository id
-
getExtended
Description copied from interface:LogEntry
Returns the extended information attached to this log entry.- Specified by:
getExtended
in interfaceLogEntry
- Specified by:
getExtended
in interfaceLogEntry
-
hashCode
public int hashCode() -
equals
-
toString
-