1
|
package eu.etaxonomy.cdm.model.view;
|
2
|
|
3
|
import org.hibernate.envers.RevisionType;
|
4
|
|
5
|
import eu.etaxonomy.cdm.model.common.CdmBase;
|
6
|
|
7
|
public class AuditEventRecordImpl<T extends CdmBase> implements AuditEventRecord<T> {
|
8
|
|
9
|
private AuditEvent auditEvent;
|
10
|
private T auditableObject;
|
11
|
private RevisionType revisionType;
|
12
|
|
13
|
public AuditEventRecordImpl(Object[] obj) {
|
14
|
assert obj.length == 3 : "The array must have three elements";
|
15
|
auditableObject = (T)obj[0];
|
16
|
auditEvent = (AuditEvent)obj[1];
|
17
|
revisionType = (RevisionType)obj[2];
|
18
|
}
|
19
|
|
20
|
public AuditEvent getAuditEvent() {
|
21
|
return auditEvent;
|
22
|
}
|
23
|
|
24
|
public T getAuditableObject() {
|
25
|
return auditableObject;
|
26
|
}
|
27
|
|
28
|
public RevisionType getRevisionType() {
|
29
|
return revisionType;
|
30
|
}
|
31
|
|
32
|
}
|