@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; } }
portalDriverContainerServices.getPortletRegistryService(); final List<PortletApplicationDefinition> contexts = new ArrayList<>();
@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; } }
/** * Get a portlet descriptor matching the current portlet definition form. If the current form * does not represent a portlet, the application or portlet name fields are blank, or the * portlet description cannot be retrieved, the method will return <code>null</code>. * * @param form * @return */ public PortletDefinition getPortletDescriptor(PortletDefinitionForm form) { final Tuple<String, String> portletDescriptorKeys = this.getPortletDescriptorKeys(form); if (portletDescriptorKeys == null) { return null; } final String portletAppId = portletDescriptorKeys.first; final String portletName = portletDescriptorKeys.second; final PortletRegistryService portletRegistryService = portalDriverContainerServices.getPortletRegistryService(); try { return portletRegistryService.getPortlet(portletAppId, portletName); } catch (PortletContainerException e) { e.printStackTrace(); return null; } }
this.portalDriverContainerServices.getPortletRegistryService(); final PortletDefinition portletDescriptor; try {
portalDriverContainerServices.getPortletRegistryService(); final PortletDefinition portletDef; try {