1 9 package org.jboss.portal.server.metadata; 10 11 import org.jboss.portal.server.PortalConstants; 12 import org.jboss.portal.server.ServerObjectID; 13 14 import java.util.Map ; 15 16 20 public class PortalMetaData extends ServerObjectMetaData 21 { 22 23 private Map properties; 24 25 public PortalMetaData(String name) 26 { 27 super(ServerObjectID.createPortalID(name), name); 28 ModesMetaData modes = new ModesMetaData(); 29 modes.getModes().add("EDIT"); 30 modes.getModes().add("VIEW"); 31 modes.getModes().add("HELP"); 32 addPlugin(PortalConstants.PLUGIN_MODES, modes); 33 WindowStatesMetaData windowStates = new WindowStatesMetaData(); 34 windowStates.getWindowStates().add("MAXIMIZED"); 35 windowStates.getWindowStates().add("MINIMIZED"); 36 windowStates.getWindowStates().add("NORMAL"); 37 addPlugin(PortalConstants.PLUGIN_WINDOW_STATES, windowStates); 38 this.depends.add(ServerObjectID.createPortalContainerID()); 39 } 40 41 public Map getProperties() 42 { 43 return properties; 44 } 45 46 public void setProperties(Map properties) 47 { 48 this.properties = properties; 49 } 50 } 51 | Popular Tags |