Class OpenSearchAuditEventDAO
java.lang.Object
org.apache.syncope.core.persistence.opensearch.dao.OpenSearchAuditEventDAO
- All Implemented Interfaces:
AuditEventDAO
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.opensearch.client.opensearch.OpenSearchClient
protected final OpenSearchIndexManager
protected final int
protected static final Logger
-
Constructor Summary
ConstructorDescriptionOpenSearchAuditEventDAO
(OpenSearchIndexManager indexManager, org.opensearch.client.opensearch.OpenSearchClient 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 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) 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, wait
Methods 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:
save
in 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:
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
-