1
|
/**
|
2
|
* Copyright (C) 2009 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
|
10
|
package eu.etaxonomy.cdm.model.view;
|
11
|
|
12
|
import org.hibernate.envers.RevisionType;
|
13
|
|
14
|
import eu.etaxonomy.cdm.model.common.CdmBase;
|
15
|
|
16
|
public class AuditEventRecordImpl<T extends CdmBase> implements AuditEventRecord<T> {
|
17
|
|
18
|
private AuditEvent auditEvent;
|
19
|
private T auditableObject;
|
20
|
private RevisionType revisionType;
|
21
|
|
22
|
public AuditEventRecordImpl(Object[] obj) {
|
23
|
assert obj.length == 3 : "The array must have three elements";
|
24
|
auditableObject = (T)obj[0];
|
25
|
auditEvent = (AuditEvent)obj[1];
|
26
|
revisionType = (RevisionType)obj[2];
|
27
|
}
|
28
|
|
29
|
public AuditEvent getAuditEvent() {
|
30
|
return auditEvent;
|
31
|
}
|
32
|
|
33
|
public T getAuditableObject() {
|
34
|
return auditableObject;
|
35
|
}
|
36
|
|
37
|
public RevisionType getRevisionType() {
|
38
|
return revisionType;
|
39
|
}
|
40
|
|
41
|
}
|