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<pl.edu.icm.unity.base.audit.AuditEvent>
List of AuditEvent objects.List of tags.List<pl.edu.icm.unity.base.audit.AuditEvent>
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<pl.edu.icm.unity.base.audit.AuditEvent> getAllEvents()List of AuditEvent objects.- Returns:
- all AuditEvent sorted by timestamp .
-
getAuditEvents
List<pl.edu.icm.unity.base.audit.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.
-
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.
-