1packageorg.apache.jetspeed.portal.portlets;
23/*4 * Copyright 2000-2001,2004 The Apache Software Foundation.5 * 6 * Licensed under the Apache License, Version 2.0 (the "License");7 * you may not use this file except in compliance with the License.8 * You may obtain a copy of the License at9 * 10 * http://www.apache.org/licenses/LICENSE-2.011 * 12 * Unless required by applicable law or agreed to in writing, software13 * distributed under the License is distributed on an "AS IS" BASIS,14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.15 * See the License for the specific language governing permissions and16 * limitations under the License.17 */1819import org.apache.jetspeed.services.persistence.PersistenceManager;
20import org.apache.jetspeed.portal.PortletInstance;
2122/*** 23 * Bogus Portlet. Use to test portlet instance persistence24 * 25 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>26 */27publicclassBogusPortletextendsAbstractInstancePortlet28 {
2930public 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();
35PortletInstance instance = PersistenceManager.getInstance(this,data);
36 String s4 = instance.getAttribute("country");
37returnnew org.apache.jetspeed.util.JetspeedClearElement( s1 + s2 + s3 + ", " + s4);
38 }
3940 }
41