Class DefaultWriteAuditGateway
- java.lang.Object
-
- de.hybris.platform.persistence.audit.gateway.impl.AbstractWriteAuditGateway
-
- de.hybris.platform.persistence.audit.gateway.impl.DefaultWriteAuditGateway
-
- All Implemented Interfaces:
WriteAuditGateway
public class DefaultWriteAuditGateway extends AbstractWriteAuditGateway
-
-
Constructor Summary
Constructors Constructor Description DefaultWriteAuditGateway()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetWriteBatchSize()intremoveAuditRecordsForType(java.lang.String type)Removes audit records which are matching giventype.intremoveAuditRecordsForType(java.lang.String type, PK pk)Removes audit records which are matching giventypeandpk.voidsaveLinkAuditRecords(java.util.List<LinkAuditRecordCommand> cmdList)Saves audit records into the storage.voidsaveTypeAuditRecords(java.util.List<TypeAuditRecordCommand> cmdList)Saves audit records into the storage.voidsetAuditScopeInvalidator(AuditScopeInvalidator auditScopeInvalidator)voidsetJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)-
Methods inherited from class de.hybris.platform.persistence.audit.gateway.impl.AbstractWriteAuditGateway
serialize, setPayloadSerializer
-
-
-
-
Method Detail
-
saveTypeAuditRecords
public void saveTypeAuditRecords(java.util.List<TypeAuditRecordCommand> cmdList)
Description copied from interface:WriteAuditGatewaySaves audit records into the storage.- Parameters:
cmdList- objects which keeps all necessary information to store the audit records.
-
saveLinkAuditRecords
public void saveLinkAuditRecords(java.util.List<LinkAuditRecordCommand> cmdList)
Description copied from interface:WriteAuditGatewaySaves audit records into the storage.- Parameters:
cmdList- objects which keeps all necessary information to store the audit records.
-
getWriteBatchSize
protected int getWriteBatchSize()
-
removeAuditRecordsForType
public int removeAuditRecordsForType(java.lang.String type)
Description copied from interface:WriteAuditGatewayRemoves audit records which are matching giventype.- Parameters:
type- type code- Returns:
- number of deleted audit records
-
removeAuditRecordsForType
public int removeAuditRecordsForType(java.lang.String type, PK pk)Description copied from interface:WriteAuditGatewayRemoves audit records which are matching giventypeandpk.- Parameters:
type- type codepk- pk- Returns:
- number of deleted records
-
setJdbcTemplate
public void setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
-
setAuditScopeInvalidator
public void setAuditScopeInvalidator(AuditScopeInvalidator auditScopeInvalidator)
-
-