1 146 package com.ivata.groupware.admin.security.user; 147 148 149 import java.util.Set ; 150 151 import com.ivata.groupware.container.persistence.BaseDO; 152 153 154 168 public class UserDO extends BaseDO { 169 173 private boolean deleted; 174 175 178 private boolean enabled; 179 180 184 private Set groups; 185 186 190 private String name; 191 192 196 private String password; 197 198 202 public final String getDisplayName() { 203 if (isDeleted()) { 204 return this.getName() + " (deleted)"; 205 } else { 206 return this.getName(); 207 } 208 } 209 216 public final String getDisplayValue() { 217 return name; 218 } 219 232 public final Set getGroups() { 233 return groups; 234 } 235 245 public final Integer getId() { 246 return super.getId(); 247 } 248 257 public final String getName() { 258 return name; 259 } 260 268 public final String getPassword() { 269 return password; 270 } 271 277 public boolean isDeleted() { 278 return deleted; 279 } 280 291 public boolean isEnabled() { 292 return enabled; 293 } 294 295 299 public final void setDeleted(final boolean deleted) { 300 this.deleted = deleted; 301 } 302 303 310 public final void setEnabled(final boolean enabled) { 311 this.enabled = enabled; 312 } 313 314 318 public final void setGroups(final Set groups) { 319 this.groups = groups; 320 } 321 322 329 public final void setName(final String name) { 330 this.name = name; 331 } 332 333 339 public final void setPassword(final String password) { 340 this.password = password; 341 } 342 343 } 344 | Popular Tags |