1 package org.apache.jetspeed.portal.portlets;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 import org.apache.jetspeed.services.persistence.PersistenceManager;
20 import org.apache.jetspeed.portal.PortletInstance;
21
22 /***
23 * Bogus Portlet. Use to test portlet instance persistence
24 *
25 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
26 */
27 public class BogusPortlet extends AbstractInstancePortlet
28 {
29
30 public org.apache.ecs.ConcreteElement getContent(org.apache.turbine.util.RunData data)
31 {
32 String s1 = "Config ID: " + getPortletConfig().getPortletId();
33 String s2 = ", Portlet ID: " + getID();
34 String s3 = ", Page ID: " + getPortletConfig().getPageId();
35 PortletInstance instance = PersistenceManager.getInstance(this,data);
36 String s4 = instance.getAttribute("country");
37 return new org.apache.jetspeed.util.JetspeedClearElement( s1 + s2 + s3 + ", " + s4);
38 }
39
40 }
41