Subversion Repositories SmartDukaan

Rev

Rev 21600 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
21543 ashik.ali 1
package com.spice.profitmandi.common.model;
2
 
3
import java.util.List;
4
 
5
public class UserInfo {
6
	private final String email;
7
	private final int userId;
8
	private final List<String> roleNames;
9
	public UserInfo(int userId, List<String> roleNames, String email){
10
		this.userId = userId;
11
		this.roleNames = roleNames;
12
		this.email = email;
13
	}
14
	public int getUserId() {
15
		return userId;
16
	}
17
	public void addRoleName(String roleName){
18
		roleNames.add(roleName);
19
	}
20
	public List<String> getRoleNames() {
21
		return roleNames;
22
	}
23
	public String getEmail() {
24
		return email;
25
	}
26
 
27
}