Package pl.edu.icm.unity.engine.api
Interface AuditEventManagement
-
public interface AuditEventManagement
AuditEvent management API.- Author:
- R. Ledzinski
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
disableAuditEvents()
Disable Audit Logs feature (Audit Logs gathering) n the system.void
enableAuditEvents()
Enable Audit Logs feature (Audit Logs gathering) in the system.List<AuditEvent>
getAllEvents()
List of AuditEvent objects.Set<String>
getAllTags()
List of tags.List<AuditEvent>
getAuditEvents(Date from, Date until, int limit, String order, int direction)
Retrieve list of AuditEvents sorted by timestamp for given time period.boolean
isPublisherEnabled()
Checks, if Audit Logs feature (Audit Logs gathering) in enabled in the system.
-
-
-
Method Detail
-
getAllEvents
List<AuditEvent> getAllEvents()
List of AuditEvent objects.- Returns:
- all AuditEvent sorted by timestamp .
-
getAuditEvents
List<AuditEvent> getAuditEvents(Date from, Date until, int limit, String order, int direction)
Retrieve list of AuditEvents sorted by timestamp for given time period.- Parameters:
from
- From date or from the earliest timestamp (if null)until
- Until date or till the latest timestamp (if null)limit
- Maximum number of returned recordsorder
- AuditEvent field for sorting purposes - at this moment only "timestamp" value is supporteddirection
- Descending in case of negative value, ascending order in other cases.- Returns:
- AuditEvent list sorted by timestamp.
-
isPublisherEnabled
boolean isPublisherEnabled()
Checks, if Audit Logs feature (Audit Logs gathering) in enabled in the system.- Returns:
- Audit Logs feature status
-
enableAuditEvents
void enableAuditEvents()
Enable Audit Logs feature (Audit Logs gathering) in the system.
-
disableAuditEvents
void disableAuditEvents()
Disable Audit Logs feature (Audit Logs gathering) n the system.
-
-