Fixes ALF-10615: Channel names must be in correct case in Social Publishing UI

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31169 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Brian Remmington
2011-10-12 14:20:36 +00:00
parent 33289cbe68
commit 63e87a3388
14 changed files with 69 additions and 0 deletions

View File

@@ -10,6 +10,14 @@
</property> </property>
</bean> </bean>
<bean id="facebookChannelMessageBundle" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
<property name="resourceBundles">
<list>
<value>org.alfresco.repo.publishing.facebook.facebook-publishing</value>
</list>
</property>
</bean>
<bean id="facebookDeliveryChannelType" class="org.alfresco.repo.publishing.facebook.FacebookChannelType" parent="baseChannelType"> <bean id="facebookDeliveryChannelType" class="org.alfresco.repo.publishing.facebook.FacebookChannelType" parent="baseChannelType">
<property name="publishingHelper" ref="facebookPublishingHelper" /> <property name="publishingHelper" ref="facebookPublishingHelper" />
</bean> </bean>

View File

@@ -10,6 +10,14 @@
</property> </property>
</bean> </bean>
<bean id="flickrChannelMessageBundle" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
<property name="resourceBundles">
<list>
<value>org.alfresco.repo.publishing.flickr.flickr-publishing</value>
</list>
</property>
</bean>
<bean id="flickrDeliveryChannelType" class="org.alfresco.repo.publishing.flickr.FlickrChannelType" parent="baseChannelType" > <bean id="flickrDeliveryChannelType" class="org.alfresco.repo.publishing.flickr.FlickrChannelType" parent="baseChannelType" >
<property name="connectionFactory" ref="flickrConnectionFactory" /> <property name="connectionFactory" ref="flickrConnectionFactory" />
<property name="taggingService" ref="TaggingService" /> <property name="taggingService" ref="TaggingService" />

View File

@@ -10,6 +10,14 @@
</property> </property>
</bean> </bean>
<bean id="linkedinChannelMessageBundle" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
<property name="resourceBundles">
<list>
<value>org.alfresco.repo.publishing.linkedin.linkedin-publishing</value>
</list>
</property>
</bean>
<bean id="linkedInDeliveryChannelType" class="org.alfresco.repo.publishing.linkedin.LinkedInChannelType" parent="baseChannelType"> <bean id="linkedInDeliveryChannelType" class="org.alfresco.repo.publishing.linkedin.LinkedInChannelType" parent="baseChannelType">
<property name="nodeService" ref="NodeService" /> <property name="nodeService" ref="NodeService" />
<property name="connectionFactory" ref="linkedinConnectionFactory" /> <property name="connectionFactory" ref="linkedinConnectionFactory" />

View File

@@ -10,6 +10,14 @@
</property> </property>
</bean> </bean>
<bean id="slideshareChannelMessageBundle" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
<property name="resourceBundles">
<list>
<value>org.alfresco.repo.publishing.slideshare.slideshare-publishing</value>
</list>
</property>
</bean>
<bean id="slidesharePublishingHelper" class="org.alfresco.repo.publishing.slideshare.SlideSharePublishingHelper"> <bean id="slidesharePublishingHelper" class="org.alfresco.repo.publishing.slideshare.SlideSharePublishingHelper">
<property name="slideshareConnector" ref="slideshareApiConnector" /> <property name="slideshareConnector" ref="slideshareApiConnector" />
<property name="encryptor" ref="metadataEncryptor" /> <property name="encryptor" ref="metadataEncryptor" />

View File

@@ -10,6 +10,14 @@
</property> </property>
</bean> </bean>
<bean id="twitterChannelMessageBundle" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
<property name="resourceBundles">
<list>
<value>org.alfresco.repo.publishing.twitter.twitter-publishing</value>
</list>
</property>
</bean>
<bean id="twitterDeliveryChannelType" class="org.alfresco.repo.publishing.twitter.TwitterChannelType" parent="baseChannelType" > <bean id="twitterDeliveryChannelType" class="org.alfresco.repo.publishing.twitter.TwitterChannelType" parent="baseChannelType" >
<property name="nodeService" ref="NodeService" /> <property name="nodeService" ref="NodeService" />
<property name="connectionFactory"> <property name="connectionFactory">

View File

@@ -10,6 +10,14 @@
</property> </property>
</bean> </bean>
<bean id="youtubeChannelMessageBundle" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
<property name="resourceBundles">
<list>
<value>org.alfresco.repo.publishing.youtube.youtube-publishing</value>
</list>
</property>
</bean>
<bean id="youtubePublishingHelper" class="org.alfresco.repo.publishing.youtube.YouTubePublishingHelper"> <bean id="youtubePublishingHelper" class="org.alfresco.repo.publishing.youtube.YouTubePublishingHelper">
<property name="encryptor" ref="metadataEncryptor" /> <property name="encryptor" ref="metadataEncryptor" />
</bean> </bean>

View File

@@ -35,6 +35,7 @@ import org.alfresco.service.namespace.QName;
import org.alfresco.util.ParameterCheck; import org.alfresco.util.ParameterCheck;
import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource; import org.springframework.core.io.Resource;
import org.springframework.extensions.surf.util.I18NUtil;
/** /**
* @author Nick Smith * @author Nick Smith
@@ -77,6 +78,13 @@ public abstract class AbstractChannelType implements ChannelType, ChannelTypePub
this.nodeService = nodeService; this.nodeService = nodeService;
} }
@Override
public String getTitle()
{
String title = I18NUtil.getMessage("publishing.channel-type." + getId() + ".title");
return title == null ? getId() : title;
}
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */

View File

@@ -0,0 +1 @@
publishing.channel-type.facebook.title=Facebook

View File

@@ -0,0 +1 @@
publishing.channel-type.flickr.title=Flickr

View File

@@ -0,0 +1 @@
publishing.channel-type.linkedin.title=LinkedIn

View File

@@ -0,0 +1 @@
publishing.channel-type.slideshare.title=SlideShare

View File

@@ -0,0 +1 @@
publishing.channel-type.twitter.title=Twitter

View File

@@ -0,0 +1 @@
publishing.channel-type.youtube.title=YouTube

View File

@@ -40,6 +40,13 @@ public interface ChannelType
*/ */
String getId(); String getId();
/**
* Returns the title (display name) of this channel type.
* The title may be localised, but this is implementation specific
* @return
*/
String getTitle();
/** /**
* Each channel is stored in the repository as a node. This operation returns * Each channel is stored in the repository as a node. This operation returns
* the qualified name of the type of that node. * the qualified name of the type of that node.