Class LogEntryProvider
- java.lang.Object
-
- org.nuxeo.ecm.platform.audit.service.LogEntryProvider
-
- All Implemented Interfaces:
BaseLogEntryProvider
public class LogEntryProvider extends Object implements BaseLogEntryProvider
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLogEntries(List<LogEntry> entries)voidaddLogEntry(LogEntry entry)voidappend(List<LogEntry> entries)LongcountEventsById(String eventId)static LogEntryProvidercreateProvider(javax.persistence.EntityManager em)protected voiddoPersist(LogEntry entry)protected List<LogEntry>doPublish(List<LogEntry> entries)protected LogEntrydoPublish(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, String repositoryId)Returns the logs given a doc uuid and a repository id.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.LogEntrygetLogEntryByID(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(String[] eventIds, String dateRange)List<LogEntry>queryLogs(QueryBuilder builder)List<LogEntry>queryLogsByPage(String[] eventIds, String dateRange, String[] categories, String path, int pageNb, int pageSize)List<LogEntry>queryLogsByPage(String[] eventIds, Date limit, String[] categories, String path, int pageNb, int pageSize)intremoveEntries(String eventId, String pathPattern)protected StringtoString(Operator operator)A string representation of an Operator
-
-
-
Field Detail
-
LIKE
public static final String LIKE
- See Also:
- Constant Field Values
-
em
protected final javax.persistence.EntityManager em
-
-
Method Detail
-
createProvider
public static LogEntryProvider createProvider(javax.persistence.EntityManager em)
-
doPersist
protected void doPersist(LogEntry entry)
-
addLogEntry
public void addLogEntry(LogEntry entry)
- Specified by:
addLogEntryin interfaceBaseLogEntryProvider
-
getLogEntriesFor
public List<LogEntry> getLogEntriesFor(String uuid, String repositoryId)
Description copied from interface:BaseLogEntryProviderReturns the logs given a doc uuid and a repository id.- Specified by:
getLogEntriesForin interfaceBaseLogEntryProvider- Parameters:
uuid- the document uuidrepositoryId- the repository id- Returns:
- a list of log entries
-
getLogEntriesFor
public List<LogEntry> getLogEntriesFor(String uuid)
Description copied from interface:BaseLogEntryProviderReturns the logs given a doc uuid.- Specified by:
getLogEntriesForin interfaceBaseLogEntryProvider- Parameters:
uuid- the document uuid- Returns:
- a list of log entries
-
getLogEntriesFor
public List<LogEntry> getLogEntriesFor(String uuid, Map<String,FilterMapEntry> filterMap, boolean doDefaultSort)
Description copied from interface:BaseLogEntryProviderReturns the logs given a doc uuid, a map of filters and a default sort.- Specified by:
getLogEntriesForin interfaceBaseLogEntryProvider- Parameters:
uuid- the document uuidfilterMap- the map of filters to applydoDefaultSort- the default sort to set- Returns:
- a list of log entries
-
getLogEntryByID
public LogEntry getLogEntryByID(long id)
-
nativeQueryLogs
public List<LogEntry> nativeQueryLogs(String whereClause, int pageNb, int pageSize)
-
nativeQuery
public List<?> nativeQuery(String queryString, Map<String,Object> params, int pageNb, int pageSize)
-
queryLogs
public List<LogEntry> queryLogs(QueryBuilder builder)
-
queryLogsByPage
public List<LogEntry> queryLogsByPage(String[] eventIds, String dateRange, String[] categories, String path, int pageNb, int pageSize)
-
queryLogsByPage
public List<LogEntry> queryLogsByPage(String[] eventIds, Date limit, String[] categories, String path, int pageNb, int pageSize)
-
removeEntries
public int removeEntries(String eventId, String pathPattern)
- Specified by:
removeEntriesin interfaceBaseLogEntryProvider
-
-