Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/RoleDTO.java =================================================================== diff -u --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/RoleDTO.java (revision 0) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/RoleDTO.java (revision 14bd0a4083cfe3ac923ce00814935b8c0794712d) @@ -0,0 +1,63 @@ +/**************************************************************** + * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) + * ============================================================= + * License Information: http://lamsfoundation.org/licensing/lams/2.0/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2.0 + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + * USA + * + * http://www.gnu.org/licenses/gpl.txt + * **************************************************************** + */ + +/* $Id$ */ +package org.lamsfoundation.lams.admin.web; + +import org.lamsfoundation.lams.usermanagement.Role; + +/** + * @author Jun-Dir Liew + * + * Created at 12:10:10 on 16/06/2006 + */ +public class RoleDTO implements Comparable { + + private Integer roleId; + private String name; + + public Integer getRoleId(){ + return this.roleId; + } + + public void setRoleId(Integer roleId){ + this.roleId = roleId; + } + + public String getName(){ + return this.name; + } + + public void setName(String name){ + this.name = name; + } + + public RoleDTO(Role r){ + roleId = r.getRoleId(); + name = r.getName(); + } + + public int compareTo(RoleDTO roleDTO){ + return name.compareTo(roleDTO.getName()); + } +} Fisheye: Tag 14bd0a4083cfe3ac923ce00814935b8c0794712d refers to a dead (removed) revision in file `lams_admin/src/java/org/lamsfoundation/lams/admin/web/UserOrgRolesDTO.java'. Fisheye: No comparison available. Pass `N' to diff?