root/trunk/cdmlib/cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/view/AuditEventRecordImpl.java

Revision 7421, 1.0 kB (checked in by k.luther, 3 years ago)
  • Property svn:keywords set to Id
Line 
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
10package eu.etaxonomy.cdm.model.view;
11
12import org.hibernate.envers.RevisionType;
13
14import eu.etaxonomy.cdm.model.common.CdmBase;
15
16public 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}
Note: See TracBrowser for help on using the browser.