Fixed failing publishing tests.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29564 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
N Smith
2011-08-05 13:01:09 +00:00
parent b1834d4339
commit ee66c4dab2
6 changed files with 76 additions and 55 deletions

View File

@@ -118,6 +118,11 @@ public abstract class NodeUtils
};
}
public static boolean exists(NodeRef node, NodeService nodeService)
{
return node != null && nodeService.exists(node);
}
public static NodeRef getSingleChildAssocNode(Collection<ChildAssociationRef> assocs, boolean getChild)
{
if(assocs != null && assocs.size()==1 )