KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > server > metadata > PortalMetaData


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

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 JavaDoc;
15
16 /**
17  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
18  * @version $Revision: 1.4 $
19  */

20 public class PortalMetaData extends ServerObjectMetaData
21 {
22
23    private Map JavaDoc properties;
24
25    public PortalMetaData(String JavaDoc 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 JavaDoc getProperties()
42    {
43       return properties;
44    }
45
46    public void setProperties(Map JavaDoc properties)
47    {
48       this.properties = properties;
49    }
50 }
51
Popular Tags