@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; } }
@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; } }
@Override public PortletDefinition getParentPortletDescriptor(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.getPortlet( portletDescriptorKeys.first, portletDescriptorKeys.second); } catch (PortletContainerException e) { if (this.logger.isDebugEnabled()) { this.logger.warn( "No portlet descriptor could be found for the portlet definition, null will be returned: " + portletDefinition, e); } else { this.logger.warn( "No portlet descriptor could be found for the portlet definition, null will be returned: " + portletDefinition + " Enable DEBUG for stack trace."); } return null; } }
@Override public PortletDefinition getParentPortletDescriptor(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.getPortlet( portletDescriptorKeys.first, portletDescriptorKeys.second); } catch (PortletContainerException e) { if (this.logger.isDebugEnabled()) { this.logger.warn( "No portlet descriptor could be found for the portlet definition, null will be returned: " + portletDefinition, e); } else { this.logger.warn( "No portlet descriptor could be found for the portlet definition, null will be returned: " + portletDefinition + " Enable DEBUG for stack trace."); } return null; } }