use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.EventFloodRegulator in project ovirt-engine by oVirt.
the class RemoveAuditLogByIdCommand method executeCommand.
@Override
protected void executeCommand() {
AuditLog auditLog = getAuditLog();
auditLogDao.remove(getParameters().getAuditLogId());
setAuditLogDetails(auditLog);
// clear the id so the auditLog will be considered as a system-level auditLog
auditLog.setUserId(Guid.Empty);
AuditLogable logableToClear = createAuditLogableImpl(auditLog);
// clean cache manager entry (if exists)
EventFloodRegulator eventFloodRegulator = new EventFloodRegulator(logableToClear, auditLog.getLogType());
eventFloodRegulator.evict();
setSucceeded(true);
}
Aggregations