|
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 AuditLogger
entries
- the list of log entries.public List<LogEntry> getLogEntriesFor(String uuid)
AuditReader
:XXX: add parameters to this method for paging.
getLogEntriesFor
in interface AuditReader
uuid
- 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)
AuditReader
Note we will use NXQL in the future when the search engine will index history.
queryLogsByPage
in interface AuditReader
eventIds
- 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)
AuditReader
Note we will use NXQL in the future when the search engine will index history.
queryLogsByPage
in interface AuditReader
eventIds
- 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)
AuditReader
Note we will use NXQL in the future when the search engine will index history.
queryLogs
in interface AuditReader
eventIds
- the event ids.dateRange
- a preset date range.
DateRangeQueryConstants
public LogEntry getLogEntryByID(long id)
AuditReader
getLogEntryByID
in interface AuditReader
id
- 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 AuditLogger
AuditException
public void logEvents(EventBundle eventBundle) throws AuditException
AuditLogger
logEvents
in interface AuditLogger
AuditException
protected 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 |