KickJava   Java API By Example, From Geeks To Geeks.

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


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.ServerObjectID;
12
13 /**
14  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
15  * @version $Revision: 1.2 $
16  */

17 public class WindowMetaData extends ServerObjectMetaData
18 {
19
20    /** The portal this window belongs to. */
21    private final ServerObjectID serverID;
22
23    /** The instance this window links to. */
24    private final ServerObjectID instanceID;
25
26    public WindowMetaData(String JavaDoc name, ServerObjectID serverID, ServerObjectID instanceID)
27    {
28       super(ServerObjectID.createWindowID(serverID, name), name);
29       this.serverID = serverID;
30       this.instanceID = instanceID;
31       this.depends.add(serverID);
32       this.depends.add(instanceID);
33    }
34
35    public ServerObjectID getPortalID()
36    {
37       return serverID;
38    }
39
40    public ServerObjectID getInstanceID()
41    {
42       return instanceID;
43    }
44 }
45
Popular Tags