use of ubic.gemma.model.common.auditAndSecurity.AuditEventValueObject in project Gemma by PavlidisLab.
the class ExpressionExperimentDetailsValueObject method auditEvents2SampleRemovedFlags.
public void auditEvents2SampleRemovedFlags(Collection<AuditEvent> s) {
Collection<AuditEventValueObject> converted = new HashSet<>();
for (AuditEvent ae : s) {
converted.add(new AuditEventValueObject(ae));
}
this.sampleRemovedFlags = converted;
}
use of ubic.gemma.model.common.auditAndSecurity.AuditEventValueObject in project Gemma by PavlidisLab.
the class AuditController method getEvents.
public Collection<AuditEventValueObject> getEvents(EntityDelegator e) {
Collection<AuditEventValueObject> result = new HashSet<>();
Auditable entity = this.getAuditable(e);
if (entity == null) {
return result;
}
assert entity.getAuditTrail().getId() != null;
Collection<AuditEvent> events = auditEventService.getEvents(entity);
for (AuditEvent ev : events) {
if (ev == null)
continue;
/*
* Hide generic update events.
*/
if (ev.getAction().equals(AuditAction.UPDATE) && ev.getEventType() == null)
continue;
result.add(new AuditEventValueObject(ev));
}
return result;
}
Aggregations