Subversion Repositories SmartDukaan

Rev

Rev 23780 | 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.Set;

public class UserInfo {
        private final String email;
        private final int userId;
        private final int retailerId;
        private final Set<Integer> roleIds;
        public UserInfo(int userId, int retailerId, Set<Integer> roleIds, String email){
                this.userId = userId;
                this.retailerId = retailerId;
                this.roleIds = roleIds;
                this.email = email;
        }
        public int getUserId() {
                return userId;
        }
        public int getRetailerId() {
                return retailerId;
        }
        public void addRoleId(int roleId){
                roleIds.add(roleId);
        }
        public Set<Integer> getRoleIds() {
                return roleIds;
        }
        public String getEmail() {
                return email;
        }
        
        @Override
        public String toString() {
                return "UserInfo [email=" + email + ", userId=" + userId + ", retailerId=" + retailerId + ", roleIds=" + roleIds
                                + "]";
        }
        
        
}