mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Removed the siteId from all PublishingService and ChannelService methods. These services are no longer tied to a Share site.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29255 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -36,6 +36,7 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.repo.node.NodeUtils;
|
||||
import org.alfresco.service.cmr.dictionary.DictionaryService;
|
||||
import org.alfresco.service.cmr.dictionary.PropertyDefinition;
|
||||
import org.alfresco.service.cmr.dictionary.TypeDefinition;
|
||||
@@ -143,7 +144,7 @@ public class ChannelHelper
|
||||
public NodeRef mapEnvironmentToSource(NodeRef publishedNode)
|
||||
{
|
||||
List<AssociationRef> assocs = nodeService.getTargetAssocs(publishedNode, ASSOC_SOURCE);
|
||||
return getSingleValue(assocs, true);
|
||||
return NodeUtils.getSingleAssocNode(assocs, true);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -326,16 +327,6 @@ public class ChannelHelper
|
||||
return null;
|
||||
}
|
||||
|
||||
private NodeRef getSingleValue(List<AssociationRef> assocs, boolean getChild)
|
||||
{
|
||||
if(assocs != null && assocs.size()==1 )
|
||||
{
|
||||
AssociationRef association = assocs.get(0);
|
||||
return getChild ? association.getTargetRef() : association.getSourceRef();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private Function<ChildAssociationRef, Channel> getChannelTransformer(final ChannelService channelService)
|
||||
{
|
||||
return new Function<ChildAssociationRef, Channel>()
|
||||
|
Reference in New Issue
Block a user