@Name(value="contentHistoryActions") @Scope(value=EVENT) public class ContentHistoryActionsBean extends Object implements ContentHistoryActions
:XXX: http://jira.nuxeo.org/browse/NXP-514
Modifier and Type | Field and Description |
---|---|
protected Comparator<LogEntry> |
comparator |
protected CoreSession |
documentManager |
protected Map<String,FilterMapEntry> |
filterMap |
protected List<LogEntry> |
logEntries |
protected int |
nbLogEntries |
protected String |
newSortColumn |
protected SortInfo |
sortInfo |
Constructor and Description |
---|
ContentHistoryActionsBean() |
Modifier and Type | Method and Description |
---|---|
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() |
SortInfo |
getSortInfo() |
protected List<LogEntry> logEntries
protected final int nbLogEntries
@In(create=true, required=false) protected transient CoreSession documentManager
@RequestParameter(value="sortColumn") protected String newSortColumn
protected Map<String,FilterMapEntry> filterMap
protected Comparator<LogEntry> comparator
public ContentHistoryActionsBean()
@Factory(value="latestLogEntries", scope=EVENT) public List<LogEntry> computeLatestLogEntries()
ContentHistoryActions
computeLatestLogEntries
in interface ContentHistoryActions
@Factory(value="logEntries", scope=EVENT) public List<LogEntry> computeLogEntries()
ContentHistoryActions
computeLogEntries
in interface ContentHistoryActions
@Factory(value="logEntriesComments", scope=EVENT) public Map<Long,String> computeLogEntriesComments()
computeLogEntriesComments
in interface ContentHistoryActions
@Factory(value="logEntriesLinkedDocs", scope=EVENT) public Map<Long,LinkedDocument> computeLogEntrieslinkedDocs()
computeLogEntrieslinkedDocs
in interface ContentHistoryActions
public List<LogEntry> computeLogEntries(DocumentModel document)
ContentHistoryActions
computeLogEntries
in interface ContentHistoryActions
public String doSearch()
doSearch
in interface ContentHistoryActions
public SortInfo getSortInfo()
getSortInfo
in interface ContentHistoryActions
Copyright © 2018 Nuxeo. All rights reserved.