root / src / gr / ebs / gss / common / dto / AuditInfoDTO.java @ af6aa461
History | View | Annotate | Download (3.2 kB)
1 |
/*
|
---|---|
2 |
* Copyright 2007, 2008, 2009 Electronic Business Systems Ltd.
|
3 |
*
|
4 |
* This file is part of GSS.
|
5 |
*
|
6 |
* GSS is free software: you can redistribute it and/or modify
|
7 |
* it under the terms of the GNU General Public License as published by
|
8 |
* the Free Software Foundation, either version 3 of the License, or
|
9 |
* (at your option) any later version.
|
10 |
*
|
11 |
* GSS is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with GSS. If not, see <http://www.gnu.org/licenses/>.
|
18 |
*/
|
19 |
package gr.ebs.gss.common.dto; |
20 |
|
21 |
import java.util.Date; |
22 |
|
23 |
/**
|
24 |
* The Data Transfer Object version of the AuditInfo class.
|
25 |
*
|
26 |
* @author past
|
27 |
*/
|
28 |
public class AuditInfoDTO implements java.io.Serializable { |
29 |
|
30 |
/**
|
31 |
* The serial version UID.
|
32 |
*/
|
33 |
private static final long serialVersionUID = 1L; |
34 |
|
35 |
/**
|
36 |
* The date the associated object was created.
|
37 |
*/
|
38 |
private Date creationDate; |
39 |
|
40 |
/**
|
41 |
* The user that created the associated object.
|
42 |
*/
|
43 |
private UserDTO createdBy;
|
44 |
|
45 |
/**
|
46 |
* The date the associated object was modified.
|
47 |
*/
|
48 |
private Date modificationDate; |
49 |
|
50 |
/**
|
51 |
* The user that modified the associated object.
|
52 |
*/
|
53 |
private UserDTO modifiedBy;
|
54 |
|
55 |
/**
|
56 |
* A default constructor for serialization.
|
57 |
*/
|
58 |
public AuditInfoDTO() {
|
59 |
// Do nothing.
|
60 |
} |
61 |
|
62 |
/**
|
63 |
* Retrieve the creation date for the associated object.
|
64 |
*
|
65 |
* @return the date of creation
|
66 |
*/
|
67 |
public Date getCreationDate() { |
68 |
return creationDate;
|
69 |
} |
70 |
|
71 |
/**
|
72 |
* Modify the creation date for the associated object.
|
73 |
*
|
74 |
* @param newCreationDate the new date of creation
|
75 |
*/
|
76 |
public void setCreationDate(final Date newCreationDate) { |
77 |
creationDate = newCreationDate; |
78 |
} |
79 |
|
80 |
/**
|
81 |
* Retrieve the user that created the associated object.
|
82 |
*
|
83 |
* @return the user that created the associated object
|
84 |
*/
|
85 |
public UserDTO getCreatedBy() {
|
86 |
return createdBy;
|
87 |
} |
88 |
|
89 |
/**
|
90 |
* Modify the user that created the associated object.
|
91 |
*
|
92 |
* @param newCreatedBy the new user that created the associated object
|
93 |
*/
|
94 |
public void setCreatedBy(final UserDTO newCreatedBy) { |
95 |
createdBy = newCreatedBy; |
96 |
} |
97 |
|
98 |
/**
|
99 |
* Retrieve the modification date for the associated object.
|
100 |
*
|
101 |
* @return the date of modification
|
102 |
*/
|
103 |
public Date getModificationDate() { |
104 |
return modificationDate;
|
105 |
} |
106 |
|
107 |
/**
|
108 |
* Modify the modification date for the associated object.
|
109 |
*
|
110 |
* @param newModificationDate the new date of modification
|
111 |
*/
|
112 |
public void setModificationDate(final Date newModificationDate) { |
113 |
modificationDate = newModificationDate; |
114 |
} |
115 |
|
116 |
/**
|
117 |
* Retrieve the user that modified the associated object.
|
118 |
*
|
119 |
* @return the user that modified the associated object
|
120 |
*/
|
121 |
public UserDTO getModifiedBy() {
|
122 |
return modifiedBy;
|
123 |
} |
124 |
|
125 |
/**
|
126 |
* Modify the user that modified the associated object.
|
127 |
*
|
128 |
* @param newModifiedBy the new user that modified the associated object
|
129 |
*/
|
130 |
public void setModifiedBy(final UserDTO newModifiedBy) { |
131 |
modifiedBy = newModifiedBy; |
132 |
} |
133 |
} |