public class ElasticsearchLoggerDAO extends JPALoggerDAO
JPALoggerDAO.MessageCriteriaBuilder
Modifier and Type | Field and Description |
---|---|
protected org.elasticsearch.client.RestHighLevelClient |
client |
protected ElasticsearchUtils |
elasticsearchUtils |
LOG
AUDIT_ENTRY_EVENT_DATE_COLUMN, AUDIT_MESSAGE_COLUMN, AUDIT_TABLE
Constructor and Description |
---|
ElasticsearchLoggerDAO() |
Modifier and Type | Method and Description |
---|---|
int |
countAuditEntries(String entityKey,
AuditElements.EventCategoryType type,
String category,
String subcategory,
List<String> events,
AuditElements.Result result,
Date before,
Date after) |
List<AuditEntry> |
findAuditEntries(String entityKey,
int page,
int itemsPerPage,
AuditElements.EventCategoryType type,
String category,
String subcategory,
List<String> events,
AuditElements.Result result,
Date before,
Date after,
List<OrderByClause> orderBy) |
protected org.elasticsearch.index.query.QueryBuilder |
getQueryBuilder(String entityKey,
AuditElements.EventCategoryType type,
String category,
String subcategory,
List<String> events,
AuditElements.Result result,
Date before,
Date after) |
protected List<org.elasticsearch.search.sort.SortBuilder<?>> |
sortBuilders(List<OrderByClause> orderBy) |
delete, delete, fillWithParameters, find, findAll, messageCriteriaBuilder, save, select
clear, detach, entityManager, entityManagerFactory, refresh
@Autowired protected org.elasticsearch.client.RestHighLevelClient client
@Autowired protected ElasticsearchUtils elasticsearchUtils
protected org.elasticsearch.index.query.QueryBuilder getQueryBuilder(String entityKey, AuditElements.EventCategoryType type, String category, String subcategory, List<String> events, AuditElements.Result result, Date before, Date after)
public int countAuditEntries(String entityKey, AuditElements.EventCategoryType type, String category, String subcategory, List<String> events, AuditElements.Result result, Date before, Date after)
countAuditEntries
in interface LoggerDAO
countAuditEntries
in class JPALoggerDAO
protected List<org.elasticsearch.search.sort.SortBuilder<?>> sortBuilders(List<OrderByClause> orderBy)
public List<AuditEntry> findAuditEntries(String entityKey, int page, int itemsPerPage, AuditElements.EventCategoryType type, String category, String subcategory, List<String> events, AuditElements.Result result, Date before, Date after, List<OrderByClause> orderBy)
findAuditEntries
in interface LoggerDAO
findAuditEntries
in class JPALoggerDAO
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.