1 23 package com.sun.enterprise.deployment; 24 25 32 public class Role extends PrincipalImpl { 33 34 private String description; 35 36 37 public Role(String name) { 38 super(name); 39 } 40 41 42 public boolean equals(Object other) { 43 boolean ret = false; 44 if(other instanceof Role) { 45 ret = getName().equals(((Role)other).getName()); 46 } 47 48 return ret; 49 } 50 51 52 public String getDescription() { 53 if (this.description == null) { 54 this.description = ""; 55 } 56 return this.description; 57 } 58 59 public void setDescription(String description) { 60 this.description = description; 61 } 62 } 63 64 | Popular Tags |