Rev 1061 | Blame | Compare with Previous | Last modification | View Log | RSS feed
package in.shop2020.content.security;/*** Represents a user. Contains username, password and role of the user.** @author rajveer**/public class User {private String username;private String password;private Role role;/*** Default constructor for a user** @param name* @param password* @param role*/public User(String name, String password, Role role) {super();this.username = name;this.password = password;this.role = role;}/*** Set username* @param username*/public void setUserame(String username) {this.username = username;}/*** Get username* @return*/public String getUsername() {return username;}/*** Set password* @param password*/public void setPassword(String password) {this.password = password;}/*** Get password* @return password of the user*/public String getPassword() {return password;}/*** Set the role* @param role*/public void setRole(Role role) {this.role = role;}/**** @return role of the user.*/public Role getRole() {return role;}}