/connect-web/src/main/java/org/osforce/connect/web/module/system/LoginBean.java

http://focus-sns.googlecode.com/ · Java · 47 lines · 30 code · 10 blank · 7 comment · 0 complexity · 66ef9c1bdc0487d634b2c406bdd7d1c5 MD5 · raw file

  1. package org.osforce.connect.web.module.system;
  2. import org.hibernate.validator.constraints.Email;
  3. import org.hibernate.validator.constraints.NotBlank;
  4. /**
  5. *
  6. * @author <a href="mailto:haozhonghu@hotmail.com">gavin</a>
  7. * @since 1.1.0
  8. * @create May 19, 2011 - 8:58:52 PM
  9. * <a href="http://www.opensourceforce.org">????</a>
  10. */
  11. public class LoginBean {
  12. @NotBlank @Email
  13. private String username;
  14. @NotBlank
  15. private String password;
  16. private Boolean rememberMe = true;
  17. public LoginBean() {
  18. }
  19. public String getUsername() {
  20. return username;
  21. }
  22. public void setUsername(String username) {
  23. this.username = username;
  24. }
  25. public String getPassword() {
  26. return password;
  27. }
  28. public void setPassword(String password) {
  29. this.password = password;
  30. }
  31. public Boolean getRememberMe() {
  32. return rememberMe;
  33. }
  34. public void setRememberMe(Boolean rememberMe) {
  35. this.rememberMe = rememberMe;
  36. }
  37. }