Class OpenSearchAuditConfDAO
- 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.OpenSearchAuditConfDAO
-
- All Implemented Interfaces:
AuditConfDAO
,DAO<AuditConf>
public class OpenSearchAuditConfDAO 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 org.opensearch.client.opensearch.OpenSearchClient
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 OpenSearchAuditConfDAO(org.opensearch.client.opensearch.OpenSearchClient 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 org.opensearch.client.opensearch._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<org.opensearch.client.opensearch._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 org.opensearch.client.opensearch._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<org.opensearch.client.opensearch._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
-
-