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

@@ -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}
*/

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();
/**
* 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.