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