mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Removed the Environment from the publishing implementation.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29183 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -51,6 +51,16 @@ public class ChannelImpl implements Channel
|
||||
this.channelHelper = channelHelper;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public String getId()
|
||||
{
|
||||
// TODO Auto-generated method stub
|
||||
return nodeRef.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@@ -89,6 +99,7 @@ public class ChannelImpl implements Channel
|
||||
@Override
|
||||
public void publish(NodeRef nodeToPublish)
|
||||
{
|
||||
channelHelper.addPublishedAspect(nodeToPublish, nodeRef);
|
||||
if(channelHelper.canPublish(nodeToPublish, channelType))
|
||||
{
|
||||
channelType.publish(nodeToPublish, getProperties());
|
||||
@@ -119,8 +130,7 @@ public class ChannelImpl implements Channel
|
||||
*/
|
||||
public String getUrl(NodeRef publishedNode)
|
||||
{
|
||||
NodeRef mappedChannel = channelHelper.mapChannelNOde(nodeRef);
|
||||
NodeRef mappedNode = channelHelper.mapSourceToEnvironment(publishedNode, mappedChannel);
|
||||
NodeRef mappedNode = channelHelper.mapSourceToEnvironment(publishedNode, nodeRef);
|
||||
return channelType.getNodeUrl(mappedNode);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user