@Test public void testGetChannelPublishingDefinition() { PortletPublishingDefinition portletPublishingDefinition = xmlChannelPublishingDefinitionDao.getChannelPublishingDefinition(1010); assertEquals( portletPublishingDefinition.getPortletDescriptor().getPortletName(), "WebProxyPortlet"); assertEquals( portletPublishingDefinition.getPortletDescriptor().getWebAppName(), "/WebProxyPortlet"); assertEquals(portletPublishingDefinition.getSteps().size(), 1); List<Step> steps = portletPublishingDefinition.getSteps(); Step step = steps.get(0); assertEquals(step.getName(), "General Configuration"); assertEquals( step.getDescription(), "Use the configuration options after reviewing the portlet publishing information to configure the portlet."); }
@Override public PortletPublishingDefinition getChannelPublishingDefinition(int channelTypeId) { return this.cpdCreator.get(channelTypeId); }
XmlChannelPublishingDefinitionDao implements IChannelPublishingDefinitionDao, ResourceLoaderAware, InitializingBean { @Override public PortletPublishingDefinition getChannelPublishingDefinition(int channelTypeId) { return this.cpdCreator.get(channelTypeId); } }
XmlChannelPublishingDefinitionDao implements IChannelPublishingDefinitionDao, ResourceLoaderAware, InitializingBean { @Override public PortletPublishingDefinition getChannelPublishingDefinition(int channelTypeId) { return this.cpdCreator.get(channelTypeId); } XmlChannelPublishingDefinitionDao(); }
XmlChannelPublishingDefinitionDao implements IChannelPublishingDefinitionDao, ResourceLoaderAware, InitializingBean { @Override public PortletPublishingDefinition getChannelPublishingDefinition(int channelTypeId) { return this.cpdCreator.get(channelTypeId); } XmlChannelPublishingDefinitionDao(); @javax.annotation.Resource(name = "cpdCache") void setCpdCache(Map<Integer, PortletPublishingDefinition> cpdCache); @Autowired(required = true) void setPortletTypeRegistry(IPortletTypeRegistry portletTypeRegistry); @Override void setResourceLoader(ResourceLoader resourceLoader); @Override void afterPropertiesSet(); @Override PortletPublishingDefinition getChannelPublishingDefinition(int channelTypeId); @Override Map<IPortletType, PortletPublishingDefinition> getChannelPublishingDefinitions(); }
XmlChannelPublishingDefinitionDao implements IChannelPublishingDefinitionDao, ResourceLoaderAware, InitializingBean { @Override public PortletPublishingDefinition getChannelPublishingDefinition(int channelTypeId) { return this.cpdCreator.get(channelTypeId); } XmlChannelPublishingDefinitionDao(); @javax.annotation.Resource(name = "cpdCache") void setCpdCache(Map<Integer, PortletPublishingDefinition> cpdCache); @Autowired(required = true) void setPortletTypeRegistry(IPortletTypeRegistry portletTypeRegistry); @Override void setResourceLoader(ResourceLoader resourceLoader); @Override void afterPropertiesSet(); @Override PortletPublishingDefinition getChannelPublishingDefinition(int channelTypeId); @Override Map<IPortletType, PortletPublishingDefinition> getChannelPublishingDefinitions();  }