@Test public void testGetChannelPublishingDefinitions() { Map<IPortletType, PortletPublishingDefinition> results = xmlChannelPublishingDefinitionDao.getChannelPublishingDefinitions(); assertEquals(results.size(), 1); }
@Override public Map<IPortletType, PortletPublishingDefinition> getChannelPublishingDefinitions() { final List<IPortletType> channelTypes = this.portletTypeRegistry.getPortletTypes(); final Map<IPortletType, PortletPublishingDefinition> cpds = new LinkedHashMap<IPortletType, PortletPublishingDefinition>(channelTypes.size()); for (final IPortletType channelType : channelTypes) { final PortletPublishingDefinition cpd = this.getChannelPublishingDefinition(channelType.getId()); cpds.put(channelType, cpd); } return cpds; }
XmlChannelPublishingDefinitionDao implements IChannelPublishingDefinitionDao, ResourceLoaderAware, InitializingBean { @Override public Map<IPortletType, PortletPublishingDefinition> getChannelPublishingDefinitions() { final List<IPortletType> channelTypes = this.portletTypeRegistry.getPortletTypes(); final Map<IPortletType, PortletPublishingDefinition> cpds = new LinkedHashMap<IPortletType, PortletPublishingDefinition>(channelTypes.size()); for (final IPortletType channelType : channelTypes) { final PortletPublishingDefinition cpd = this.getChannelPublishingDefinition(channelType.getId()); cpds.put(channelType, cpd); } return cpds; } }
XmlChannelPublishingDefinitionDao implements IChannelPublishingDefinitionDao, ResourceLoaderAware, InitializingBean { @Override public Map<IPortletType, PortletPublishingDefinition> getChannelPublishingDefinitions() { final List<IPortletType> channelTypes = this.portletTypeRegistry.getPortletTypes(); final Map<IPortletType, PortletPublishingDefinition> cpds = new LinkedHashMap<IPortletType, PortletPublishingDefinition>(channelTypes.size()); for (final IPortletType channelType : channelTypes) { final PortletPublishingDefinition cpd = this.getChannelPublishingDefinition(channelType.getId()); cpds.put(channelType, cpd); } return cpds; } XmlChannelPublishingDefinitionDao(); }
XmlChannelPublishingDefinitionDao implements IChannelPublishingDefinitionDao, ResourceLoaderAware, InitializingBean { @Override public Map<IPortletType, PortletPublishingDefinition> getChannelPublishingDefinitions() { final List<IPortletType> channelTypes = this.portletTypeRegistry.getPortletTypes(); final Map<IPortletType, PortletPublishingDefinition> cpds = new LinkedHashMap<IPortletType, PortletPublishingDefinition>(channelTypes.size()); for (final IPortletType channelType : channelTypes) { final PortletPublishingDefinition cpd = this.getChannelPublishingDefinition(channelType.getId()); cpds.put(channelType, cpd); } return cpds; } 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 Map<IPortletType, PortletPublishingDefinition> getChannelPublishingDefinitions() { final List<IPortletType> channelTypes = this.portletTypeRegistry.getPortletTypes(); final Map<IPortletType, PortletPublishingDefinition> cpds = new LinkedHashMap<IPortletType, PortletPublishingDefinition>(channelTypes.size()); for (final IPortletType channelType : channelTypes) { final PortletPublishingDefinition cpd = this.getChannelPublishingDefinition(channelType.getId()); cpds.put(channelType, cpd); } return cpds; } 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();  }