Class ElasticsearchAuditEventDAO
java.lang.Object
org.apache.syncope.core.persistence.elasticsearch.dao.ElasticsearchAuditEventDAO
- All Implemented Interfaces:
AuditEventDAO
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final co.elastic.clients.elasticsearch.ElasticsearchClientprotected final ElasticsearchIndexManagerprotected final intprotected static final Logger -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchAuditEventDAO(ElasticsearchIndexManager indexManager, co.elastic.clients.elasticsearch.ElasticsearchClient client, int indexMaxResultWindow) -
Method Summary
Modifier and TypeMethodDescriptionlongcount(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.QuerygetQuery(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, waitMethods 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:
savein 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:
countin 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:
searchin interfaceAuditEventDAO
-