Package pl.edu.icm.unity.engine.api
Interface AuditEventManagement
public interface AuditEventManagement
AuditEvent management API.
- Author:
- R. Ledzinski
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Disable Audit Logs feature (Audit Logs gathering) n the system.void
Enable Audit Logs feature (Audit Logs gathering) in the system.List of AuditEvent objects.List of tags.getAuditEvents
(Date from, Date until, int limit, String order, int direction) Retrieve list of AuditEvents sorted by timestamp for given time period.boolean
Checks, if Audit Logs feature (Audit Logs gathering) in enabled in the system.
-
Method Details
-
getAllEvents
List<AuditEvent> getAllEvents()List of AuditEvent objects.- Returns:
- all AuditEvent sorted by timestamp .
-
getAuditEvents
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.
-
getAllTags
List of tags.- Returns:
- all Tags sorted by name.
-
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.
-