mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Created channels.get Rest Api webscript. Tested in PublishingRestApiTest
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28454 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -95,6 +95,10 @@ public class ChannelHelper
|
||||
|
||||
public Channel buildChannelObject(NodeRef nodeRef, ChannelService channelService)
|
||||
{
|
||||
if(nodeRef == null || nodeService.exists(nodeRef)==false)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
Map<QName, Serializable> props = nodeService.getProperties(nodeRef);
|
||||
String channelTypeId = (String) props.get(PublishingModel.PROP_CHANNEL_TYPE_ID);
|
||||
ChannelType channelType = channelService.getChannelType(channelTypeId);
|
||||
|
Reference in New Issue
Block a user