mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -10,6 +10,14 @@
|
||||
</property>
|
||||
</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">
|
||||
<property name="publishingHelper" ref="facebookPublishingHelper" />
|
||||
</bean>
|
||||
|
@@ -10,6 +10,14 @@
|
||||
</property>
|
||||
</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" >
|
||||
<property name="connectionFactory" ref="flickrConnectionFactory" />
|
||||
<property name="taggingService" ref="TaggingService" />
|
||||
|
@@ -10,6 +10,14 @@
|
||||
</property>
|
||||
</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">
|
||||
<property name="nodeService" ref="NodeService" />
|
||||
<property name="connectionFactory" ref="linkedinConnectionFactory" />
|
||||
|
@@ -10,6 +10,14 @@
|
||||
</property>
|
||||
</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">
|
||||
<property name="slideshareConnector" ref="slideshareApiConnector" />
|
||||
<property name="encryptor" ref="metadataEncryptor" />
|
||||
|
@@ -10,6 +10,14 @@
|
||||
</property>
|
||||
</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" >
|
||||
<property name="nodeService" ref="NodeService" />
|
||||
<property name="connectionFactory">
|
||||
|
@@ -10,6 +10,14 @@
|
||||
</property>
|
||||
</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">
|
||||
<property name="encryptor" ref="metadataEncryptor" />
|
||||
</bean>
|
||||
|
@@ -35,6 +35,7 @@ import org.alfresco.service.namespace.QName;
|
||||
import org.alfresco.util.ParameterCheck;
|
||||
import org.springframework.core.io.ClassPathResource;
|
||||
import org.springframework.core.io.Resource;
|
||||
import org.springframework.extensions.surf.util.I18NUtil;
|
||||
|
||||
/**
|
||||
* @author Nick Smith
|
||||
@@ -77,6 +78,13 @@ public abstract class AbstractChannelType implements ChannelType, ChannelTypePub
|
||||
this.nodeService = nodeService;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTitle()
|
||||
{
|
||||
String title = I18NUtil.getMessage("publishing.channel-type." + getId() + ".title");
|
||||
return title == null ? getId() : title;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
|
@@ -0,0 +1 @@
|
||||
publishing.channel-type.facebook.title=Facebook
|
@@ -0,0 +1 @@
|
||||
publishing.channel-type.flickr.title=Flickr
|
@@ -0,0 +1 @@
|
||||
publishing.channel-type.linkedin.title=LinkedIn
|
@@ -0,0 +1 @@
|
||||
publishing.channel-type.slideshare.title=SlideShare
|
@@ -0,0 +1 @@
|
||||
publishing.channel-type.twitter.title=Twitter
|
@@ -0,0 +1 @@
|
||||
publishing.channel-type.youtube.title=YouTube
|
@@ -40,6 +40,13 @@ public interface ChannelType
|
||||
*/
|
||||
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
|
||||
* the qualified name of the type of that node.
|
||||
|
Reference in New Issue
Block a user