You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.2 KiB

3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. package com.election.lokshaba.component;
  2. import org.springframework.context.annotation.Scope;
  3. import org.springframework.context.annotation.ScopedProxyMode;
  4. import org.springframework.stereotype.Component;
  5. import org.springframework.web.context.WebApplicationContext;
  6. @Component
  7. @Scope(value = WebApplicationContext.SCOPE_SESSION, proxyMode = ScopedProxyMode.TARGET_CLASS)
  8. public class UserSession {
  9. private Integer userId;
  10. private long mobNo;
  11. private String userType;
  12. private String dispayName;
  13. private String zone;
  14. public Integer getUserId() {
  15. return userId;
  16. }
  17. public void setUserId(Integer userId) {
  18. this.userId = userId;
  19. }
  20. public String getUserType() {
  21. return userType;
  22. }
  23. public void setUserType(String userType) {
  24. this.userType = userType;
  25. }
  26. public String getDispayName() {
  27. return dispayName;
  28. }
  29. public void setDispayName(String dispayName) {
  30. this.dispayName = dispayName;
  31. }
  32. public long getMobNo() {
  33. return mobNo;
  34. }
  35. public void setMobNo(long mobNo) {
  36. this.mobNo = mobNo;
  37. }
  38. public String getZone() {
  39. return zone;
  40. }
  41. public void setZone(String zone) {
  42. this.zone = zone;
  43. }
  44. }