Search in sources :

Example 1 with ArrayDesignMergeEvent

use of ubic.gemma.model.common.auditAndSecurity.eventType.ArrayDesignMergeEvent in project Gemma by PavlidisLab.

the class ArrayDesignMergeHelperServiceImpl method audit.

/**
 * Add an ArrayDesignMergeEvent event to the audit trail. Does not persist it.
 *
 * @param arrayDesign array design
 * @param note        note
 */
private void audit(ArrayDesign arrayDesign, String note) {
    AuditEvent auditEvent = AuditEvent.Factory.newInstance(new Date(), AuditAction.UPDATE, note, null, null, new ArrayDesignMergeEvent());
    arrayDesign.getAuditTrail().addEvent(auditEvent);
}
Also used : ArrayDesignMergeEvent(ubic.gemma.model.common.auditAndSecurity.eventType.ArrayDesignMergeEvent) AuditEvent(ubic.gemma.model.common.auditAndSecurity.AuditEvent) Date(java.util.Date)

Aggregations

Date (java.util.Date)1 AuditEvent (ubic.gemma.model.common.auditAndSecurity.AuditEvent)1 ArrayDesignMergeEvent (ubic.gemma.model.common.auditAndSecurity.eventType.ArrayDesignMergeEvent)1