protected void triggerAuditEvent( String repositoryId, String filePath, String action )
{
- AuditEvent auditEvent = new AuditEvent( action, repositoryId );
- auditEvent.setAction( action );
- auditEvent.setRepositoryId( repositoryId );
- auditEvent.setResource( filePath );
+ AuditEvent auditEvent = new AuditEvent( repositoryId, getPrincipal(), filePath, action );
AuditInformation auditInformation = getAuditInformation();
auditEvent.setUserId( auditInformation.getUser() == null ? "" : auditInformation.getUser().getUsername() );
auditEvent.setRemoteIP( auditInformation.getRemoteAddr() );
$('#fileupload').bind('fileuploadsubmit', function (e, data) {
var pomFile = data.context.find('#pomFile' ).attr("checked");
var classifier = data.context.find('#classifier' ).val();
+ if (!data.formData){
+ data.formData={};
+ }
data.formData.pomFile = pomFile;
data.formData.classifier = classifier;
});