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