Class OpenSearchAuditEventDAO
java.lang.Object
org.apache.syncope.core.persistence.opensearch.dao.OpenSearchAuditEventDAO
- All Implemented Interfaces:
AuditEventDAO
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.opensearch.client.opensearch.OpenSearchClientprotected final OpenSearchIndexManagerprotected final intprotected static final Logger -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchAuditEventDAO(OpenSearchIndexManager indexManager, org.opensearch.client.opensearch.OpenSearchClient 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 org.opensearch.client.opensearch._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<org.opensearch.client.opensearch._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 org.opensearch.client.opensearch.OpenSearchClient client -
indexMaxResultWindow
protected final int indexMaxResultWindow
-
-
Constructor Details
-
OpenSearchAuditEventDAO
public OpenSearchAuditEventDAO(OpenSearchIndexManager indexManager, org.opensearch.client.opensearch.OpenSearchClient client, int indexMaxResultWindow)
-
-
Method Details
-
save
- Specified by:
savein interfaceAuditEventDAO
-
getQuery
protected org.opensearch.client.opensearch._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
-