Subversion Repositories SmartDukaan

Rev

Rev 23780 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23780 Rev 23850
Line 3... Line 3...
3
import java.util.Set;
3
import java.util.Set;
4
 
4
 
5
public class UserInfo {
5
public class UserInfo {
6
	private final String email;
6
	private final String email;
7
	private final int userId;
7
	private final int userId;
-
 
8
	private final int retailerId;
8
	private final Set<Integer> roleIds;
9
	private final Set<Integer> roleIds;
9
	public UserInfo(int userId, Set<Integer> roleIds, String email){
10
	public UserInfo(int userId, int retailerId, Set<Integer> roleIds, String email){
10
		this.userId = userId;
11
		this.userId = userId;
-
 
12
		this.retailerId = retailerId;
11
		this.roleIds = roleIds;
13
		this.roleIds = roleIds;
12
		this.email = email;
14
		this.email = email;
13
	}
15
	}
14
	public int getUserId() {
16
	public int getUserId() {
15
		return userId;
17
		return userId;
16
	}
18
	}
-
 
19
	public int getRetailerId() {
-
 
20
		return retailerId;
-
 
21
	}
17
	public void addRoleId(int roleId){
22
	public void addRoleId(int roleId){
18
		roleIds.add(roleId);
23
		roleIds.add(roleId);
19
	}
24
	}
20
	public Set<Integer> getRoleIds() {
25
	public Set<Integer> getRoleIds() {
21
		return roleIds;
26
		return roleIds;
22
	}
27
	}
23
	public String getEmail() {
28
	public String getEmail() {
24
		return email;
29
		return email;
25
	}
30
	}
-
 
31
	
26
	@Override
32
	@Override
27
	public String toString() {
33
	public String toString() {
28
		return "UserInfo [email=" + email + ", userId=" + userId + ", roleIds=" + roleIds + "]";
34
		return "UserInfo [email=" + email + ", userId=" + userId + ", retailerId=" + retailerId + ", roleIds=" + roleIds
-
 
35
				+ "]";
29
	}
36
	}
30
	
37
	
-
 
38
	
31
}
39
}