1 18 19 package sync4j.framework.server; 20 21 import java.io.Serializable ; 22 import org.apache.commons.lang.builder.ToStringBuilder; 23 24 32 public class SyncUser implements Serializable { 33 34 private String username; 35 private String password; 36 private String email; 37 private String firstname; 38 private String lastname; 39 private String [] roles; 40 41 42 public SyncUser() { 43 this(null, null, null, null, null, null); 44 } 45 46 public SyncUser(String username, String password, String email, String firstname, String lastname, String [] roles) { 47 this.username = username; 48 this.password = password; 49 this.email = email; 50 this.firstname = firstname; 51 this.lastname = lastname; 52 this.roles = roles; 53 } 54 55 59 public String getUsername() { 60 return username; 61 } 62 63 67 public void setUsername(String username) { 68 this.username = username; 69 } 70 71 75 public String getPassword() { 76 return password; 77 } 78 79 83 public void setPassword(String password) { 84 this.password = password; 85 } 86 87 91 public String getEmail() { 92 return email; 93 } 94 95 99 public void setEmail(String email) { 100 this.email = email; 101 } 102 103 107 public String getFirstname() { 108 return firstname; 109 } 110 111 115 public void setFirstname(String firstname) { 116 this.firstname = firstname; 117 } 118 119 123 public String getLastname() { 124 return lastname; 125 } 126 127 131 public void setLastname(String lastname) { 132 this.lastname = lastname; 133 } 134 135 139 public String [] getRoles() { 140 return roles; 141 } 142 143 147 public void setRoles(String [] roles) { 148 this.roles = roles; 149 } 150 151 public String toString() { 152 ToStringBuilder sb = new ToStringBuilder(this); 153 154 sb.append("username:", username); 155 sb.append("password:", password); 156 sb.append("email:", email); 157 sb.append("firstname:", firstname); 158 sb.append("lastname:", lastname); 159 160 return sb.toString(); 161 } 162 163 } | Popular Tags |