1 9 package org.jboss.portal.core.metadata; 10 11 import org.jboss.portal.server.ServerObjectID; 12 import org.jboss.portal.server.metadata.ServerObjectMetaData; 13 import org.jboss.portal.server.plugins.PluginID; 14 15 import java.util.HashSet ; 16 import java.util.Set ; 17 18 22 public class PageMetaData extends ServerObjectMetaData 23 { 24 25 private Set windowSet; 27 private String layoutName = null; 28 29 public PageMetaData(String portalName, String name) 30 { 31 super(new ServerObjectID(new String []{"page", portalName, name}), name); 32 windowSet = new HashSet (); 33 ServerObjectID serverID = ServerObjectID.createPortalID(portalName); 34 PluginID pluginID = new PluginID(serverID, "PAGES"); 35 depends.add(pluginID); 36 } 37 38 43 public String getLayoutName() 44 { 45 return layoutName; 46 } 47 48 53 public void setLayoutName(String layoutName) 54 { 55 this.layoutName = layoutName; 56 } 57 68 69 public Set getWindowSet() 70 { 71 return windowSet; 72 } 73 74 public void addWindow(WindowLocationMetaData window) 75 { 76 windowSet.add(window); 77 } 78 79 public boolean equals(Object o) 80 { 81 if (this == o) 82 { 83 return true; 84 } 85 if (o instanceof PageMetaData) 86 { 87 PageMetaData other = (PageMetaData)o; 88 return other.name.equals(name); 89 } 90 return false; 91 } 92 93 public int hashCode() 94 { 95 return name.hashCode(); 96 } 97 } 98 | Popular Tags |