1 9 package org.jboss.portal.core.metadata; 10 11 import java.util.Set ; 12 13 17 public class PermissionMetaData 18 { 19 20 private String name; 21 private Set roleNames; 22 23 public PermissionMetaData(String name) 24 { 25 this.name = name; 26 } 27 28 public String getName() 29 { 30 return name; 31 } 32 33 public Set getRoleNames() 34 { 35 return roleNames; 36 } 37 38 public void setRoleNames(Set roleNames) 39 { 40 this.roleNames = roleNames; 41 } 42 43 public boolean equals(Object obj) 44 { 45 if (obj == this) 46 { 47 return true; 48 } 49 if (obj instanceof PermissionMetaData) 50 { 51 PermissionMetaData other = (PermissionMetaData)obj; 52 return name.equals(other.name); 53 } 54 return false; 55 } 56 57 public int hashCode() 58 { 59 return name.hashCode(); 60 } 61 } 62 | Popular Tags |