Class ElasticsearchAuditConfDAO
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.dao.AbstractDAO<AuditConf>
-
- org.apache.syncope.core.persistence.jpa.dao.JPAAuditConfDAO
-
- org.apache.syncope.core.persistence.jpa.dao.ElasticsearchAuditConfDAO
-
- All Implemented Interfaces:
AuditConfDAO
,DAO<AuditConf>
public class ElasticsearchAuditConfDAO extends JPAAuditConfDAO
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.syncope.core.persistence.jpa.dao.JPAAuditConfDAO
JPAAuditConfDAO.MessageCriteriaBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected co.elastic.clients.elasticsearch.ElasticsearchClient
client
protected int
indexMaxResultWindow
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
LOG
-
Fields inherited from interface org.apache.syncope.core.persistence.api.dao.AuditConfDAO
AUDIT_ENTRY_EVENT_DATE_COLUMN, AUDIT_ENTRY_MESSAGE_COLUMN, AUDIT_ENTRY_TABLE
-
-
Constructor Summary
Constructors Constructor Description ElasticsearchAuditConfDAO(co.elastic.clients.elasticsearch.ElasticsearchClient client, int indexMaxResultWindow)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
countEntries(String entityKey, AuditElements.EventCategoryType type, String category, String subcategory, List<String> events, AuditElements.Result result, OffsetDateTime before, OffsetDateTime after)
protected co.elastic.clients.elasticsearch._types.query_dsl.Query
getQuery(String entityKey, AuditElements.EventCategoryType type, String category, String subcategory, List<String> events, AuditElements.Result result, OffsetDateTime before, OffsetDateTime after)
List<AuditEntry>
searchEntries(String entityKey, int page, int itemsPerPage, AuditElements.EventCategoryType type, String category, String subcategory, List<String> events, AuditElements.Result result, OffsetDateTime before, OffsetDateTime after, List<OrderByClause> orderBy)
protected List<co.elastic.clients.elasticsearch._types.SortOptions>
sortBuilders(List<OrderByClause> orderBy)
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.JPAAuditConfDAO
delete, fillWithParameters, find, findAll, messageCriteriaBuilder, save, select
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
detach, entityManager, entityManagerFactory, isOracle, refresh
-
-
-
-
Method Detail
-
getQuery
protected co.elastic.clients.elasticsearch._types.query_dsl.Query getQuery(String entityKey, AuditElements.EventCategoryType type, String category, String subcategory, List<String> events, AuditElements.Result result, OffsetDateTime before, OffsetDateTime after)
-
countEntries
public int countEntries(String entityKey, AuditElements.EventCategoryType type, String category, String subcategory, List<String> events, AuditElements.Result result, OffsetDateTime before, OffsetDateTime after)
- Specified by:
countEntries
in interfaceAuditConfDAO
- Overrides:
countEntries
in classJPAAuditConfDAO
-
sortBuilders
protected List<co.elastic.clients.elasticsearch._types.SortOptions> sortBuilders(List<OrderByClause> orderBy)
-
searchEntries
public List<AuditEntry> searchEntries(String entityKey, int page, int itemsPerPage, AuditElements.EventCategoryType type, String category, String subcategory, List<String> events, AuditElements.Result result, OffsetDateTime before, OffsetDateTime after, List<OrderByClause> orderBy)
- Specified by:
searchEntries
in interfaceAuditConfDAO
- Overrides:
searchEntries
in classJPAAuditConfDAO
-
-