Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.audit.web.listener.ejb
Class ContentHistoryActionsBean

java.lang.Object
  extended by org.nuxeo.ecm.platform.audit.web.listener.ejb.ContentHistoryActionsBean
All Implemented Interfaces:
java.io.Serializable, ContentHistoryActions

@Name(value="contentHistoryActions")
@Scope(value=EVENT)
public class ContentHistoryActionsBean
extends java.lang.Object
implements ContentHistoryActions

Content history actions bean.

:XXX: http://jira.nuxeo.org/browse/NXP-514

Author:
Julien Anguenot
See Also:
Serialized Form

Constructor Summary
ContentHistoryActionsBean()
           
 
Method Summary
 java.util.List<LogEntry> computeLatestLogEntries()
          Computes latest logs only.
 java.util.List<LogEntry> computeLogEntries()
          Computes all log entries for current document.
 java.util.List<LogEntry> computeLogEntries(DocumentModel document)
          Computes all log entries for given document.
 java.util.Map<java.lang.Long,java.lang.String> computeLogEntriesComments()
           
 java.util.Map<java.lang.Long,LinkedDocument> computeLogEntrieslinkedDocs()
           
 void destroy()
           
 java.lang.String doSearch()
           
 java.lang.String getLogComment(LogEntry entry)
          Returns the log comment.
 LinkedDocument getLogLinkedDocument(LogEntry entry)
          Returns the log linked document.
 SortInfo getSortInfo()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentHistoryActionsBean

public ContentHistoryActionsBean()
Method Detail

destroy

@Destroy
public void destroy()
Specified by:
destroy in interface ContentHistoryActions

computeLatestLogEntries

@Factory(value="latestLogEntries",
         scope=EVENT)
public java.util.List<LogEntry> computeLatestLogEntries()
                                                 throws AuditException
Description copied from interface: ContentHistoryActions
Computes latest logs only.

Specified by:
computeLatestLogEntries in interface ContentHistoryActions
Throws:
AuditException

computeLogEntries

@Factory(value="logEntries",
         scope=EVENT)
public java.util.List<LogEntry> computeLogEntries()
                                           throws AuditException
Description copied from interface: ContentHistoryActions
Computes all log entries for current document.

Specified by:
computeLogEntries in interface ContentHistoryActions
Throws:
AuditException

computeLogEntriesComments

@Factory(value="logEntriesComments",
         scope=EVENT)
public java.util.Map<java.lang.Long,java.lang.String> computeLogEntriesComments()
                                                                         throws AuditException
Specified by:
computeLogEntriesComments in interface ContentHistoryActions
Throws:
AuditException

computeLogEntrieslinkedDocs

@Factory(value="logEntriesLinkedDocs",
         scope=EVENT)
public java.util.Map<java.lang.Long,LinkedDocument> computeLogEntrieslinkedDocs()
                                                                         throws AuditException
Specified by:
computeLogEntrieslinkedDocs in interface ContentHistoryActions
Throws:
AuditException

computeLogEntries

public java.util.List<LogEntry> computeLogEntries(DocumentModel document)
                                           throws AuditException
Description copied from interface: ContentHistoryActions
Computes all log entries for given document.

Specified by:
computeLogEntries in interface ContentHistoryActions
Throws:
AuditException

doSearch

public java.lang.String doSearch()
Specified by:
doSearch in interface ContentHistoryActions

getLogComment

public java.lang.String getLogComment(LogEntry entry)
Description copied from interface: ContentHistoryActions
Returns the log comment.

This log may be filled automatically when dealing with copy/paste/move log entries.

Specified by:
getLogComment in interface ContentHistoryActions

getLogLinkedDocument

public LinkedDocument getLogLinkedDocument(LogEntry entry)
Description copied from interface: ContentHistoryActions
Returns the log linked document.

The linked document is resolved from the log original comment, when dealing with copy/paste/move log entries.

Specified by:
getLogLinkedDocument in interface ContentHistoryActions

getSortInfo

public SortInfo getSortInfo()
Specified by:
getSortInfo in interface ContentHistoryActions

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.