Class ElasticsearchAuditEventDAO
java.lang.Object
org.apache.syncope.core.persistence.elasticsearch.dao.ElasticsearchAuditEventDAO
- All Implemented Interfaces:
AuditEventDAO
-
Field Summary
Modifier and TypeFieldDescriptionprotected final co.elastic.clients.elasticsearch.ElasticsearchClient
protected final ElasticsearchIndexManager
protected final int
protected static final Logger
-
Constructor Summary
ConstructorDescriptionElasticsearchAuditEventDAO
(ElasticsearchIndexManager indexManager, co.elastic.clients.elasticsearch.ElasticsearchClient client, int indexMaxResultWindow) -
Method Summary
Modifier and TypeMethodDescriptionlong
count
(String entityKey, OpEvent.CategoryType type, String category, String subcategory, String op, OpEvent.Outcome outcome, OffsetDateTime before, OffsetDateTime after) protected co.elastic.clients.elasticsearch._types.query_dsl.Query
getQuery
(String entityKey, OpEvent.CategoryType type, String category, String subcategory, String op, OpEvent.Outcome outcome, OffsetDateTime before, OffsetDateTime after) save
(AuditEvent auditEvent) search
(String entityKey, OpEvent.CategoryType type, String category, String subcategory, String op, OpEvent.Outcome outcome, OffsetDateTime before, OffsetDateTime after, org.springframework.data.domain.Pageable pageable) protected List
<co.elastic.clients.elasticsearch._types.SortOptions> sortBuilders
(Stream<org.springframework.data.domain.Sort.Order> orderBy) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.syncope.core.persistence.api.dao.AuditEventDAO
toAuditEventTO
-
Field Details
-
LOG
-
indexManager
-
client
protected final co.elastic.clients.elasticsearch.ElasticsearchClient client -
indexMaxResultWindow
protected final int indexMaxResultWindow
-
-
Constructor Details
-
ElasticsearchAuditEventDAO
public ElasticsearchAuditEventDAO(ElasticsearchIndexManager indexManager, co.elastic.clients.elasticsearch.ElasticsearchClient client, int indexMaxResultWindow)
-
-
Method Details
-
save
- Specified by:
save
in interfaceAuditEventDAO
-
getQuery
protected co.elastic.clients.elasticsearch._types.query_dsl.Query getQuery(String entityKey, OpEvent.CategoryType type, String category, String subcategory, String op, OpEvent.Outcome outcome, OffsetDateTime before, OffsetDateTime after) -
count
public long count(String entityKey, OpEvent.CategoryType type, String category, String subcategory, String op, OpEvent.Outcome outcome, OffsetDateTime before, OffsetDateTime after) - Specified by:
count
in interfaceAuditEventDAO
-
sortBuilders
-
search
public List<AuditEventTO> search(String entityKey, OpEvent.CategoryType type, String category, String subcategory, String op, OpEvent.Outcome outcome, OffsetDateTime before, OffsetDateTime after, org.springframework.data.domain.Pageable pageable) - Specified by:
search
in interfaceAuditEventDAO
-