Nuxeo ECM Projects 5.4.3-SNAPSHOT

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:
Serializable, ContentHistoryActions

@Name(value="contentHistoryActions")
@Scope(value=EVENT)
public class ContentHistoryActionsBean
extends 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
 List<LogEntry> computeLatestLogEntries()
          Computes latest logs only.
 List<LogEntry> computeLogEntries()
          Computes all log entries for current document.
 List<LogEntry> computeLogEntries(DocumentModel document)
          Computes all log entries for given document.
 Map<Long,String> computeLogEntriesComments()
           
 Map<Long,LinkedDocument> computeLogEntrieslinkedDocs()
           
 String doSearch()
           
 String getLogComment(LogEntry entry)
          Deprecated. 
 LinkedDocument getLogLinkedDocument(LogEntry entry)
          Deprecated. 
 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

computeLatestLogEntries

@Factory(value="latestLogEntries",
         scope=EVENT)
public 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 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 Map<Long,String> computeLogEntriesComments()
                                           throws AuditException
Specified by:
computeLogEntriesComments in interface ContentHistoryActions
Throws:
AuditException

computeLogEntrieslinkedDocs

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

computeLogEntries

public 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 String doSearch()
Specified by:
doSearch in interface ContentHistoryActions

getLogComment

@Deprecated
public String getLogComment(LogEntry entry)
Deprecated. 

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

@Deprecated
public LinkedDocument getLogLinkedDocument(LogEntry entry)
Deprecated. 

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 ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.