use of org.apache.pluto.container.driver.PortletRegistryService in project uPortal by Jasig.
the class PortletDefinitionRegistryImpl method getParentPortletApplicationDescriptor.
/* (non-Javadoc)
* @see org.apereo.portal.portlet.registry.IPortletDefinitionRegistry#getParentPortletApplicationDescriptor(org.apereo.portal.portlet.om.IPortletDefinitionId)
*/
@Override
public PortletApplicationDefinition getParentPortletApplicationDescriptor(IPortletDefinitionId portletDefinitionId) {
final IPortletDefinition portletDefinition = this.getPortletDefinition(portletDefinitionId);
if (portletDefinition == null) {
return null;
}
final Tuple<String, String> portletDescriptorKeys = this.getPortletDescriptorKeys(portletDefinition);
final PortletRegistryService portletRegistryService = this.portalDriverContainerServices.getPortletRegistryService();
try {
return portletRegistryService.getPortletApplication(portletDescriptorKeys.first);
} catch (PortletContainerException e) {
this.logger.warn("No portlet application descriptor could be found likely not deployed. For portlet definition: " + portletDefinition, e);
return null;
}
}
Aggregations