- Remove completely Permission entry for user that get assigned no permissions at...
[pithos] / src / gr / ebs / gss / server / domain / dto / UserDTO.java
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.server.domain.dto;
20
21 import java.io.Serializable;
22 import java.util.ArrayList;
23 import java.util.List;
24 import java.util.Set;
25
26 /**
27  * @author chstath
28  */
29 public class UserDTO implements Serializable {
30
31         /**
32          * The serial version UID.
33          */
34         private static final long serialVersionUID = 1L;
35
36         /**
37          * The persistence ID of the object.
38          */
39         private Long id;
40
41         /**
42          * The first name of the user.
43          */
44         private String firstname;
45
46         /**
47          * The last name of the user.
48          */
49         private String lastname;
50
51         /**
52          * The full name of the user.
53          */
54         private String name;
55
56         /**
57          * The username of the user.
58          */
59         private String username;
60
61         /**
62          * The e-mail address of the user.
63          */
64         private String email;
65
66         /**
67          * The list of groups that have been specified by this user.
68          *
69          */
70         private List<GroupDTO> groupsSpecified = new ArrayList<GroupDTO>();
71
72         /**
73          * The set of groups of which this user is member.
74          *
75          */
76         private Set<GroupDTO> groupsMember;
77
78         /**
79          * The list of all tags this user has specified on all files.
80          *
81          */
82         private List<FileTagDTO> fileTags;
83
84         /**
85          * The user class to which this user belongs.
86          */
87         private UserClassDTO userClass;
88
89         /**
90          * @return the id
91          */
92         public Long getId() {
93                 return id;
94         }
95
96         /**
97          * @param newId the id to set
98          */
99         public void setId(final Long newId) {
100                 id = newId;
101         }
102
103         /**
104          * @return the firstname
105          */
106         public String getFirstname() {
107                 return firstname;
108         }
109
110         /**
111          * @param newFirstname the firstname to set
112          */
113         public void setFirstname(final String newFirstname) {
114                 firstname = newFirstname;
115         }
116
117         /**
118          * @return the lastname
119          */
120         public String getLastname() {
121                 return lastname;
122         }
123
124         /**
125          * @param newLastname the lastname to set
126          */
127         public void setLastname(final String newLastname) {
128                 lastname = newLastname;
129         }
130
131         /**
132          * @return the name
133          */
134         public String getName() {
135                 return name;
136         }
137
138         /**
139          * @param newName the name to set
140          */
141         public void setName(final String newName) {
142                 name = newName;
143         }
144
145         /**
146          * @return the email
147          */
148         public String getEmail() {
149                 return email;
150         }
151
152         /**
153          * @param newEmail the email to set
154          */
155         public void setEmail(final String newEmail) {
156                 email = newEmail;
157         }
158
159
160         /**
161          * Retrieve the username.
162          *
163          * @return the username
164          */
165         public String getUsername() {
166                 return username;
167         }
168
169
170         /**
171          * Modify the username.
172          *
173          * @param newUsername the username to set
174          */
175         public void setUsername(String newUsername) {
176                 username = newUsername;
177         }
178 }