1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.syncope.core.persistence.api.dao;
20
21 import java.time.OffsetDateTime;
22 import java.util.List;
23 import org.apache.syncope.common.lib.audit.AuditEntry;
24 import org.apache.syncope.common.lib.types.AuditElements;
25 import org.apache.syncope.core.persistence.api.dao.search.OrderByClause;
26 import org.apache.syncope.core.persistence.api.entity.AuditConf;
27
28 public interface AuditConfDAO extends DAO<AuditConf> {
29
30 String AUDIT_ENTRY_TABLE = "AuditEntry";
31
32 String AUDIT_ENTRY_MESSAGE_COLUMN = "MESSAGE";
33
34 String AUDIT_ENTRY_EVENT_DATE_COLUMN = "EVENT_DATE";
35
36 AuditConf find(String key);
37
38 List<AuditConf> findAll();
39
40 AuditConf save(AuditConf auditConf);
41
42 void delete(AuditConf auditConf);
43
44 int countEntries(
45 String entityKey,
46 AuditElements.EventCategoryType type,
47 String category,
48 String subcategory,
49 List<String> events,
50 AuditElements.Result result,
51 OffsetDateTime before,
52 OffsetDateTime after);
53
54 List<AuditEntry> searchEntries(
55 String entityKey,
56 int page,
57 int itemsPerPage,
58 AuditElements.EventCategoryType type,
59 String category,
60 String subcategory,
61 List<String> events,
62 AuditElements.Result result,
63 OffsetDateTime before,
64 OffsetDateTime after,
65 List<OrderByClause> orderBy);
66 }