Class DefaultWriteAuditGateway

    • Constructor Detail

      • DefaultWriteAuditGateway

        public DefaultWriteAuditGateway()
    • Method Detail

      • saveTypeAuditRecords

        public void saveTypeAuditRecords​(java.util.List<TypeAuditRecordCommand> cmdList)
        Description copied from interface: WriteAuditGateway
        Saves 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: WriteAuditGateway
        Saves 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: WriteAuditGateway
        Removes audit records which are matching given type.
        Parameters:
        type - type code
        Returns:
        number of deleted audit records
      • removeAuditRecordsForType

        public int removeAuditRecordsForType​(java.lang.String type,
                                             PK pk)
        Description copied from interface: WriteAuditGateway
        Removes audit records which are matching given type and pk.
        Parameters:
        type - type code
        pk - pk
        Returns:
        number of deleted records
      • setJdbcTemplate

        public void setJdbcTemplate​(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
      • setAuditScopeInvalidator

        public void setAuditScopeInvalidator​(AuditScopeInvalidator auditScopeInvalidator)