public class LogEntryProvider extends Object implements BaseLogEntryProvider
| Modifier and Type | Field and Description | 
|---|---|
protected javax.persistence.EntityManager | 
em  | 
static String | 
LIKE  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addLogEntries(List<LogEntry> entries)  | 
void | 
addLogEntry(LogEntry entry)  | 
void | 
append(List<LogEntry> entries)  | 
Long | 
countEventsById(String eventId)  | 
static LogEntryProvider | 
createProvider(javax.persistence.EntityManager em)  | 
protected void | 
doPersist(LogEntry entry)  | 
protected List<LogEntry> | 
doPublish(List<LogEntry> entries)  | 
protected LogEntry | 
doPublish(LogEntry entry)  | 
protected List<?> | 
doPublishIfEntries(List<?> entries)  | 
List<String> | 
findEventIds()  | 
List<LogEntry> | 
getLogEntriesFor(String uuid)
Returns the logs given a doc uuid. 
 | 
List<LogEntry> | 
getLogEntriesFor(String uuid,
                Map<String,FilterMapEntry> filterMap,
                boolean doDefaultSort)
Returns the logs given a doc uuid, a map of filters and a default sort. 
 | 
List<LogEntry> | 
getLogEntriesFor(String uuid,
                String repositoryId)
Returns the logs given a doc uuid and a repository id. 
 | 
LogEntry | 
getLogEntryByID(long id)  | 
List<?> | 
nativeQuery(String queryString,
           int pageNb,
           int pageSize)  | 
List<?> | 
nativeQuery(String queryString,
           Map<String,Object> params,
           int pageNb,
           int pageSize)  | 
List<LogEntry> | 
nativeQueryLogs(String whereClause,
               int pageNb,
               int pageSize)  | 
List<LogEntry> | 
queryLogs(QueryBuilder builder)  | 
List<LogEntry> | 
queryLogs(String[] eventIds,
         String dateRange)  | 
List<LogEntry> | 
queryLogsByPage(String[] eventIds,
               Date limit,
               String[] categories,
               String path,
               int pageNb,
               int pageSize)  | 
List<LogEntry> | 
queryLogsByPage(String[] eventIds,
               String dateRange,
               String[] categories,
               String path,
               int pageNb,
               int pageSize)  | 
int | 
removeEntries(String eventId,
             String pathPattern)  | 
protected String | 
toString(Operator operator)
A string representation of an Operator 
 | 
public static final String LIKE
protected final javax.persistence.EntityManager em
public static LogEntryProvider createProvider(javax.persistence.EntityManager em)
protected List<?> doPublishIfEntries(List<?> entries)
public void addLogEntry(LogEntry entry)
addLogEntry in interface BaseLogEntryProviderpublic void addLogEntries(List<LogEntry> entries)
public List<LogEntry> getLogEntriesFor(String uuid, String repositoryId)
BaseLogEntryProvidergetLogEntriesFor in interface BaseLogEntryProvideruuid - the document uuidrepositoryId - the repository idpublic List<LogEntry> getLogEntriesFor(String uuid)
BaseLogEntryProvidergetLogEntriesFor in interface BaseLogEntryProvideruuid - the document uuidpublic List<LogEntry> getLogEntriesFor(String uuid, Map<String,FilterMapEntry> filterMap, boolean doDefaultSort)
BaseLogEntryProvidergetLogEntriesFor in interface BaseLogEntryProvideruuid - the document uuidfilterMap - the map of filters to applydoDefaultSort - the default sort to setpublic LogEntry getLogEntryByID(long id)
public List<LogEntry> nativeQueryLogs(String whereClause, int pageNb, int pageSize)
public List<?> nativeQuery(String queryString, int pageNb, int pageSize)
public List<?> nativeQuery(String queryString, Map<String,Object> params, int pageNb, int pageSize)
public List<LogEntry> queryLogs(QueryBuilder builder)
public List<LogEntry> queryLogsByPage(String[] eventIds, String dateRange, String[] categories, String path, int pageNb, int pageSize)
public List<LogEntry> queryLogsByPage(String[] eventIds, Date limit, String[] categories, String path, int pageNb, int pageSize)
public int removeEntries(String eventId, String pathPattern)
removeEntries in interface BaseLogEntryProviderpublic Long countEventsById(String eventId)
public List<String> findEventIds()
Copyright © 2019 Nuxeo. All rights reserved.