Class JPAAuditConfDAO
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.dao.AbstractDAO<AuditConf>
-
- org.apache.syncope.core.persistence.jpa.dao.JPAAuditConfDAO
-
- All Implemented Interfaces:
AuditConfDAO
,DAO<AuditConf>
- Direct Known Subclasses:
AbstractJPAJSONLoggerDAO
,ElasticsearchAuditConfDAO
,OpenSearchAuditConfDAO
public class JPAAuditConfDAO extends AbstractDAO<AuditConf> implements AuditConfDAO
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
JPAAuditConfDAO.MessageCriteriaBuilder
-
Field Summary
-
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 JPAAuditConfDAO()
-
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)
void
delete(AuditConf auditConf)
protected void
fillWithParameters(javax.persistence.Query query, List<Object> parameters)
AuditConf
find(String key)
List<AuditConf>
findAll()
protected JPAAuditConfDAO.MessageCriteriaBuilder
messageCriteriaBuilder(String entityKey)
AuditConf
save(AuditConf auditConf)
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 String
select()
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
detach, entityManager, entityManagerFactory, isOracle, refresh
-
-
-
-
Method Detail
-
find
public AuditConf find(String key)
- Specified by:
find
in interfaceAuditConfDAO
-
findAll
public List<AuditConf> findAll()
- Specified by:
findAll
in interfaceAuditConfDAO
-
save
public AuditConf save(AuditConf auditConf)
- Specified by:
save
in interfaceAuditConfDAO
-
delete
public void delete(AuditConf auditConf)
- Specified by:
delete
in interfaceAuditConfDAO
-
messageCriteriaBuilder
protected JPAAuditConfDAO.MessageCriteriaBuilder messageCriteriaBuilder(String entityKey)
-
fillWithParameters
protected void fillWithParameters(javax.persistence.Query query, List<Object> parameters)
-
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
-
select
protected String select()
-
searchEntries
@Transactional(readOnly=true) 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
-
-