1 16 package org.apache.cocoon.portal.pluto.factory; 17 18 import javax.portlet.PortletPreferences; 19 20 import org.apache.pluto.core.impl.PortletPreferencesImpl; 21 import org.apache.pluto.factory.PortletPreferencesFactory; 22 import org.apache.pluto.om.entity.PortletEntity; 23 import org.apache.pluto.om.portlet.PortletDefinition; 24 25 26 33 public class PortletPreferencesFactoryImpl 34 extends AbstractFactory 35 implements PortletPreferencesFactory { 36 37 40 public PortletPreferences getPortletPreferences(Integer methodId, 41 PortletEntity portletEntity) { 42 return new PortletPreferencesImpl(methodId, portletEntity); 43 } 44 45 48 public PortletPreferences getPortletPreferences(Integer methodId, 49 PortletDefinition portletDefinition) { 50 return new PortletPreferencesImpl(methodId, portletDefinition); 51 } 52 53 } 54 | Popular Tags |