Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.audit.impl
Class LogEntryImpl

java.lang.Object
  extended by 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

Constructor Summary
LogEntryImpl()
           
 
Method Summary
 String getCategory()
          Returns the category for this log entry.
 String getComment()
          Returns the associated comment for this log entry.
 String getDocLifeCycle()
          Return the life cycle if the document related to the log entry.
 String getDocPath()
          Returns the doc path related to the log entry.
 String getDocType()
          Returns the doc type related to the log entry.
 String getDocUUID()
          Returns the doc UUID related to the log entry.
 Date getEventDate()
          Returns the date of the event that originated the log entry.
 String getEventId()
          Returns the identifier of the event that originated the log entry.
 Map<String,ExtendedInfo> getExtendedInfos()
           
 long getId()
           
 UIAuditComment getPreprocessedComment()
          Return the comment preprocessed to be ready for display.
 String getPrincipalName()
          Returns the name of the principal who originated the log entry.
 String getRepositoryId()
          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(DocumentRef docRef)
           
 void setDocUUID(String docUUID)
           
 void setEventDate(Date eventDate)
           
 void setEventId(String eventId)
           
 void setExtendedInfos(Map<String,ExtendedInfo> infos)
           
 void setId(long id)
           
 void setPreprocessedComment(UIAuditComment uiComment)
           
 void setPrincipalName(String principalName)
           
 void setRepositoryId(String repositoryId)
           
 String toString()
           
 String toStringTest()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogEntryImpl

public LogEntryImpl()
Method Detail

getId

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

setId

public void setId(long id)
Specified by:
setId in interface LogEntry

getPrincipalName

public String getPrincipalName()
Returns the name of the principal who originated the log entry.

Specified by:
getPrincipalName in interface LogEntry
Returns:
the name of the principal who originated the log entry

setPrincipalName

public void setPrincipalName(String principalName)
Specified by:
setPrincipalName in interface LogEntry

getEventId

public String getEventId()
Returns the identifier of the event that originated the log entry.

Specified by:
getEventId in interface LogEntry
Returns:
the identifier of the event that originated the log entry

setEventId

public void setEventId(String eventId)
Specified by:
setEventId in interface LogEntry

getEventDate

public Date getEventDate()
Returns the date of the event that originated the log entry.

Specified by:
getEventDate in interface LogEntry
Returns:
the date of the event that originated the log entry

setEventDate

public void setEventDate(Date eventDate)
Specified by:
setEventDate in interface LogEntry

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:
getDocUUID in interface LogEntry
Returns:
the doc UUID related to the log entry.

setDocUUID

public void setDocUUID(String docUUID)
Specified by:
setDocUUID in interface LogEntry

setDocUUID

public void setDocUUID(DocumentRef docRef)
Specified by:
setDocUUID in interface LogEntry

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:
getDocPath in interface LogEntry
Returns:
the doc path related to the log entry.

setDocPath

public void setDocPath(String docPath)
Specified by:
setDocPath in interface LogEntry

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:
getDocType in interface LogEntry
Returns:
the doc type related to the log entry.

setDocType

public void setDocType(String docType)
Specified by:
setDocType in interface LogEntry

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:
getCategory in interface LogEntry
Returns:
the category for this log entry.

setCategory

public void setCategory(String category)
Specified by:
setCategory in interface LogEntry

getComment

public String getComment()
Returns the associated comment for this log entry.

Specified by:
getComment in interface LogEntry
Returns:
the associated comment for this log entry

setComment

public void setComment(String comment)
Specified by:
setComment in interface LogEntry

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:
getDocLifeCycle in interface LogEntry
Returns:
the life cycle if the document related to the log entry.

setDocLifeCycle

public void setDocLifeCycle(String docLifeCycle)
Specified by:
setDocLifeCycle in interface LogEntry

getRepositoryId

public String getRepositoryId()
Returns the repository id related to the log entry.

Specified by:
getRepositoryId in interface LogEntry
Returns:
the repository id

setRepositoryId

public void setRepositoryId(String repositoryId)
Specified by:
setRepositoryId in interface LogEntry

getExtendedInfos

public Map<String,ExtendedInfo> getExtendedInfos()
Specified by:
getExtendedInfos in interface LogEntry

setExtendedInfos

public void setExtendedInfos(Map<String,ExtendedInfo> infos)
Specified by:
setExtendedInfos in interface LogEntry

toString

public String toString()
Overrides:
toString in class Object

toStringTest

public String toStringTest()

getPreprocessedComment

public UIAuditComment 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 the AuditPageProvider

Specified by:
getPreprocessedComment in interface LogEntry
Returns:

setPreprocessedComment

public void setPreprocessedComment(UIAuditComment uiComment)
Specified by:
setPreprocessedComment in interface LogEntry

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.