Subversion Repositories SmartDukaan

Rev

Rev 21543 | Rev 21923 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.common.model;

import java.util.List;

public class UserInfo {
        private final String email;
        private final int userId;
        private final List<String> roleNames;
        public UserInfo(int userId, List<String> roleNames, String email){
                this.userId = userId;
                this.roleNames = roleNames;
                this.email = email;
        }
        public int getUserId() {
                return userId;
        }
        public void addRoleName(String roleName){
                roleNames.add(roleName);
        }
        public List<String> getRoleNames() {
                return roleNames;
        }
        public String getEmail() {
                return email;
        }
        @Override
        public String toString() {
                return "UserInfo [email=" + email + ", userId=" + userId + ", roleNames=" + roleNames + "]";
        }
        
        
        
}