Class CustomAuditEventRepository
- java.lang.Object
-
- de.trustable.ca3s.core.repository.CustomAuditEventRepository
-
- All Implemented Interfaces:
org.springframework.boot.actuate.audit.AuditEventRepository
@Repository public class CustomAuditEventRepository extends Object implements org.springframework.boot.actuate.audit.AuditEventRepository
An implementation of Spring Boot'sAuditEventRepository.
-
-
Field Summary
Fields Modifier and Type Field Description protected static intEVENT_DATA_COLUMN_MAX_LENGTHShould be the same as in Liquibase migration.
-
Constructor Summary
Constructors Constructor Description CustomAuditEventRepository(PersistenceAuditEventRepository persistenceAuditEventRepository, AuditEventConverter auditEventConverter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(org.springframework.boot.actuate.audit.AuditEvent event)List<org.springframework.boot.actuate.audit.AuditEvent>find(String principal, Instant after, String type)
-
-
-
Field Detail
-
EVENT_DATA_COLUMN_MAX_LENGTH
protected static final int EVENT_DATA_COLUMN_MAX_LENGTH
Should be the same as in Liquibase migration.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CustomAuditEventRepository
public CustomAuditEventRepository(PersistenceAuditEventRepository persistenceAuditEventRepository, AuditEventConverter auditEventConverter)
-
-
Method Detail
-
find
public List<org.springframework.boot.actuate.audit.AuditEvent> find(String principal, Instant after, String type)
- Specified by:
findin interfaceorg.springframework.boot.actuate.audit.AuditEventRepository
-
add
@Transactional(propagation=REQUIRES_NEW) public void add(org.springframework.boot.actuate.audit.AuditEvent event)
- Specified by:
addin interfaceorg.springframework.boot.actuate.audit.AuditEventRepository
-
-