1 16 17 package org.apache.jetspeed.portal.portlets; 19 20 import org.apache.jetspeed.portal.PortletConfig; 22 23 30 public class AbstractInstancePortlet 31 extends AbstractPortlet 32 { 33 37 public static Object getHandle(Object config) 38 { 39 PortletConfig pc = null; 42 43 if (!(config instanceof PortletConfig)) 44 { 45 return null; 46 } 47 48 pc = (PortletConfig)config; 51 52 StringBuffer handle = new StringBuffer (256); 53 handle.append(pc.getPageId()); 54 handle.append('/'); 55 handle.append(pc.getPortletId()); 56 57 return handle.toString(); 58 59 } 61 } 63 | Popular Tags |