for ( AuditListener listener : auditListeners )
{
listener.auditEvent( event );
}
ArchivaAuditLogs auditLogs = new ArchivaAuditLogs();
auditLogs.setArtifact( resource );
auditLogs.setEvent( action );
auditLogs.setEventDate( Calendar.getInstance().getTime() );
auditLogs.setRepositoryId( repositoryId );
auditLogs.setUsername( getPrincipal() );
auditLogsDao.saveAuditLogs( auditLogs );
}