KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portlet > PortalObject


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.portlet;
10
11 import org.jboss.portal.server.PortalResponse;
12 import org.jboss.portal.server.ServerURL;
13
14 /**
15  * A portal object description.
16  *
17  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
18  * @version $Revision: 1.3 $
19  */

20 public class PortalObject
21 {
22    
23    private final int type;
24    private final String JavaDoc name;
25    private final ServerURL url;
26    private final PortalResponse resp;
27    
28    public PortalObject(int type, String JavaDoc name, ServerURL url, PortalResponse resp)
29    {
30       this.type = type;
31       this.name = name;
32       this.url = url;
33       this.resp = resp;
34    }
35    
36    public int getType()
37    {
38       return type;
39    }
40    
41    public String JavaDoc getName()
42    {
43       return name;
44    }
45    
46 // public String getDescription()
47
// {
48
// return null;
49
// }
50

51    public String JavaDoc getURL()
52    {
53       return resp.createURL(url, true);
54    }
55    
56 // public String getMiniIconURL()
57
// {
58
// return null;
59
// }
60
//
61
// public String getIconURL()
62
// {
63
// return null;
64
// }
65
}
66
Popular Tags