package in.co.sunrays.proj1.dto; /** * Role JavaBean encapsulates User's role attributes * * @author SUNRAYS Technologies * @version 1.0 * @Copyright (c) SUNRAYS Technologies */ public class RoleDTO extends BaseDTO { /** * Predefined Role constants */ public static final long ROLE_ADMIN = 1; public static final long ROLE_STUDENT = 2; public static final long ROLE_COLLEGE = 3; public static final long ROLE_KIOSK = 4; /** * Role Name */ private String name; /** * Role Description */ private String description; /** * accessor */ public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } @Override public String getKey() { return id + ""; } @Override public String getValue() { return name; } } |