1 /*
2 * Copyright (C) 2017-2019 Centre National d'Etudes Spatiales (CNES).
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 3.0 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17 * MA 02110-1301 USA
18 */
19 package fr.cnes.doi.db.model;
20
21 /**
22 * Authentication user model.
23 *
24 * @author Jean-Christophe Malapert (jean-christophe.malapert@cnes.fr)
25 */
26 public class AuthSystemUser {
27
28 /**
29 * username.
30 */
31 private String username;
32
33 /**
34 * email.
35 */
36 private String email;
37
38 /**
39 * full name.
40 */
41 private String fullname;
42
43 /**
44 * Returns the username.
45 *
46 * @return the username
47 */
48 public String getUsername() {
49 return username;
50 }
51
52 /**
53 * Sets the username
54 *
55 * @param username the username
56 */
57 public void setUsername(final String username) {
58 this.username = username;
59 }
60
61 /**
62 * Returns the email.
63 *
64 * @return the email
65 */
66 public String getEmail() {
67 return email;
68 }
69
70 /**
71 * Sets the email.
72 *
73 * @param email the email
74 */
75 public void setEmail(final String email) {
76 this.email = email;
77 }
78
79 /**
80 * Returns the full name.
81 *
82 * @return the full name
83 */
84 public String getFullname() {
85 return fullname;
86 }
87
88 /**
89 * Sets the full name.
90 *
91 * @param fullname the full name
92 */
93 public void setFullname(final String fullname) {
94 this.fullname = fullname;
95 }
96
97 /**
98 * {@inheritDoc}
99 */
100 @Override
101 public String toString() {
102 return this.getUsername() + "_" + this.getEmail();
103 }
104 }