|
Nuxeo Enterprise Platform 5.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.ecm.platform.audit.ejb.LogsBean
public class LogsBean
Stateless bean allowing to query the logs.
This class takes advantage of EJBQL. :XXX: http://jira.nuxeo.org/browse/NXP-514
| Constructor Summary | |
|---|---|
LogsBean()
|
|
| Method Summary | |
|---|---|
void |
addLogEntries(List<LogEntry> entries)
Adds given log entries. |
List<LogEntry> |
getLogEntriesFor(String uuid)
Returns the logs given a doc uuid. |
List<LogEntry> |
getLogEntriesFor(String uuid,
Map<String,FilterMapEntry> filterMap,
boolean doDefaultSort)
|
LogEntry |
getLogEntryByID(long id)
Returns a given log entry given its id. |
void |
logEvent(Event event)
Logs an Event. |
void |
logEvents(EventBundle eventBundle)
Logs a bundle of events |
protected List<LogEntry> |
mkSerializable(List<LogEntry> entries)
|
protected LogEntry |
mkSerializable(LogEntry entry)
|
List<?> |
nativeQuery(String query,
int pageNb,
int pageSize)
Returns a batched list of entries. query string is a native query clause for the backend : here EJBQL 3.0 can be used |
List<LogEntry> |
nativeQueryLogs(String whereClause,
int pageNb,
int pageSize)
Returns a batched list of log entries. |
List<LogEntry> |
queryLogs(String[] eventIds,
String dateRange)
Returns the list of log entries. |
List<LogEntry> |
queryLogsByPage(String[] eventIds,
Date limit,
String[] categories,
String path,
int pageNb,
int pageSize)
|
List<LogEntry> |
queryLogsByPage(String[] eventIds,
Date limit,
String category,
String path,
int pageNb,
int pageSize)
Returns the batched list of log entries. |
List<LogEntry> |
queryLogsByPage(String[] eventIds,
String dateRange,
String[] categories,
String path,
int pageNb,
int pageSize)
|
List<LogEntry> |
queryLogsByPage(String[] eventIds,
String dateRange,
String category,
String path,
int pageNb,
int pageSize)
Returns the batched list of log entries. |
protected NXAuditEventsService |
service()
|
long |
syncLogCreationEntries(String repoId,
String path,
Boolean recurs)
Forces log Synchronisation for a branch of the repository. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogsBean()
| Method Detail |
|---|
protected NXAuditEventsService service()
public void addLogEntries(List<LogEntry> entries)
AuditLogger
addLogEntries in interface AuditLoggerentries - the list of log entries.public List<LogEntry> getLogEntriesFor(String uuid)
AuditReader:XXX: add parameters to this method for paging.
getLogEntriesFor in interface AuditReaderuuid - the document uuid
public List<LogEntry> getLogEntriesFor(String uuid,
Map<String,FilterMapEntry> filterMap,
boolean doDefaultSort)
getLogEntriesFor in interface AuditReader
public List<LogEntry> nativeQueryLogs(String whereClause,
int pageNb,
int pageSize)
AuditReader
nativeQueryLogs in interface AuditReader
public List<?> nativeQuery(String query,
int pageNb,
int pageSize)
AuditReader
nativeQuery in interface AuditReader
public List<LogEntry> queryLogsByPage(String[] eventIds,
Date limit,
String category,
String path,
int pageNb,
int pageSize)
AuditReaderNote we will use NXQL in the future when the search engine will index history.
queryLogsByPage in interface AuditReadereventIds - the event ids.limit - filter events by date from limit to nowcategory - add filter on events categorypath - add filter on document pathpageNb - page number (ignore if <=1)pageSize - number of results per page
DateRangeQueryConstants
public List<LogEntry> queryLogsByPage(String[] eventIds,
String dateRange,
String category,
String path,
int pageNb,
int pageSize)
AuditReaderNote we will use NXQL in the future when the search engine will index history.
queryLogsByPage in interface AuditReadereventIds - the event ids.dateRange - a preset date range.category - add filter on events categorypath - add filter on document pathpageNb - page number (ignore if <=1)pageSize - number of results per page
DateRangeQueryConstants
public List<LogEntry> queryLogs(String[] eventIds,
String dateRange)
AuditReaderNote we will use NXQL in the future when the search engine will index history.
queryLogs in interface AuditReadereventIds - the event ids.dateRange - a preset date range.
DateRangeQueryConstantspublic LogEntry getLogEntryByID(long id)
AuditReader
getLogEntryByID in interface AuditReaderid - the log entry identifier
public long syncLogCreationEntries(String repoId,
String path,
Boolean recurs)
AuditAdmin
syncLogCreationEntries in interface AuditAdmin
public void logEvent(Event event)
throws AuditException
AuditLogger
logEvent in interface AuditLoggerAuditException
public void logEvents(EventBundle eventBundle)
throws AuditException
AuditLogger
logEvents in interface AuditLoggerAuditExceptionprotected List<LogEntry> mkSerializable(List<LogEntry> entries)
protected LogEntry mkSerializable(LogEntry entry)
public List<LogEntry> queryLogsByPage(String[] eventIds,
String dateRange,
String[] categories,
String path,
int pageNb,
int pageSize)
queryLogsByPage in interface AuditReader
public List<LogEntry> queryLogsByPage(String[] eventIds,
Date limit,
String[] categories,
String path,
int pageNb,
int pageSize)
queryLogsByPage in interface AuditReader
|
Nuxeo Enterprise Platform 5.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||