2 * Copyright 2007, 2008, 2009 Electronic Business Systems Ltd.
4 * This file is part of GSS.
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.
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.
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/>.
19 package gr.ebs.gss.server.domain.dto;
21 import java.io.Serializable;
22 import java.util.ArrayList;
23 import java.util.List;
29 public class UserDTO implements Serializable {
32 * The serial version UID.
34 private static final long serialVersionUID = 1L;
37 * The persistence ID of the object.
42 * The first name of the user.
44 private String firstname;
47 * The last name of the user.
49 private String lastname;
52 * The full name of the user.
57 * The username of the user.
59 private String username;
62 * The e-mail address of the user.
67 * The list of groups that have been specified by this user.
70 private List<GroupDTO> groupsSpecified = new ArrayList<GroupDTO>();
73 * The set of groups of which this user is member.
76 private Set<GroupDTO> groupsMember;
79 * The list of all tags this user has specified on all files.
82 private List<FileTagDTO> fileTags;
85 * The user class to which this user belongs.
87 private UserClassDTO userClass;
97 * @param newId the id to set
99 public void setId(final Long newId) {
104 * @return the firstname
106 public String getFirstname() {
111 * @param newFirstname the firstname to set
113 public void setFirstname(final String newFirstname) {
114 firstname = newFirstname;
118 * @return the lastname
120 public String getLastname() {
125 * @param newLastname the lastname to set
127 public void setLastname(final String newLastname) {
128 lastname = newLastname;
134 public String getName() {
139 * @param newName the name to set
141 public void setName(final String newName) {
148 public String getEmail() {
153 * @param newEmail the email to set
155 public void setEmail(final String newEmail) {
161 * Retrieve the username.
163 * @return the username
165 public String getUsername() {
171 * Modify the username.
173 * @param newUsername the username to set
175 public void setUsername(String newUsername) {
176 username = newUsername;