1 16 package org.apache.cocoon.portal.pluto; 17 18 import org.apache.cocoon.portal.pluto.om.PortletDefinitionRegistry; 19 import org.apache.pluto.om.common.ObjectID; 20 import org.apache.pluto.om.portlet.PortletDefinition; 21 import org.apache.pluto.services.information.StaticInformationProvider; 22 import org.apache.pluto.services.information.PortalContextProvider; 23 24 31 public class StaticInformationProviderImpl 32 implements StaticInformationProvider { 33 34 protected PortalContextProvider provider; 35 36 protected PortletDefinitionRegistry registry; 37 38 41 public StaticInformationProviderImpl(PortalContextProvider provider, 42 PortletDefinitionRegistry registry) { 43 this.provider = provider; 44 this.registry = registry; 45 } 46 47 50 public PortalContextProvider getPortalContextProvider() { 51 return this.provider; 52 } 53 54 57 public PortletDefinition getPortletDefinition(ObjectID portletGUID) { 58 return this.registry.getPortletDefinition(portletGUID); 59 } 60 61 } 62 | Popular Tags |