public class DefaultWriteAuditGateway extends AbstractWriteAuditGateway
| Constructor and Description |
|---|
DefaultWriteAuditGateway() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getWriteBatchSize() |
int |
removeAuditRecordsForType(java.lang.String type)
Removes audit records which are matching given
type. |
int |
removeAuditRecordsForType(java.lang.String type,
PK pk)
Removes audit records which are matching given
type and pk. |
void |
saveLinkAuditRecords(java.util.List<LinkAuditRecordCommand> cmdList)
Saves audit records into the storage.
|
void |
saveTypeAuditRecords(java.util.List<TypeAuditRecordCommand> cmdList)
Saves audit records into the storage.
|
void |
setAuditScopeInvalidator(AuditScopeInvalidator auditScopeInvalidator) |
void |
setJdbcTemplate(JdbcTemplate jdbcTemplate) |
serialize, setPayloadSerializerpublic void saveTypeAuditRecords(java.util.List<TypeAuditRecordCommand> cmdList)
WriteAuditGatewaycmdList - objects which keeps all necessary information to store the audit records.public void saveLinkAuditRecords(java.util.List<LinkAuditRecordCommand> cmdList)
WriteAuditGatewaycmdList - objects which keeps all necessary information to store the audit records.protected int getWriteBatchSize()
public int removeAuditRecordsForType(java.lang.String type)
WriteAuditGatewaytype.type - type codepublic int removeAuditRecordsForType(java.lang.String type,
PK pk)
WriteAuditGatewaytype and pk.type - type codepk - pkpublic void setJdbcTemplate(JdbcTemplate jdbcTemplate)
public void setAuditScopeInvalidator(AuditScopeInvalidator auditScopeInvalidator)
Copyright © 2018 SAP SE. All Rights Reserved.