Merged 5.2.N (5.2.1) to HEAD (5.2)

124480 aleahu: Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)
      124472 dhulley: Formatting during investigations


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@127756 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2016-06-03 16:03:47 +00:00
parent 28fcd6efb9
commit ba3c1bf61c

View File

@@ -840,9 +840,9 @@ public class DbNodeServiceImpl extends AbstractNodeServiceImpl implements Extens
@Extend(traitAPI=NodeServiceTrait.class,extensionAPI=NodeServiceExtension.class)
public int countChildAssocs(NodeRef nodeRef, boolean isPrimary) throws InvalidNodeRefException
{
final Pair<Long, NodeRef> nodePair = getNodePairNotNull(nodeRef);
final Long nodeId = nodePair.getFirst();
return nodeDAO.countChildAssocsByParent(nodeId, isPrimary);
final Pair<Long, NodeRef> nodePair = getNodePairNotNull(nodeRef);
final Long nodeId = nodePair.getFirst();
return nodeDAO.countChildAssocsByParent(nodeId, isPrimary);
}
@Override
@@ -911,7 +911,7 @@ public class DbNodeServiceImpl extends AbstractNodeServiceImpl implements Extens
{
logger.trace(
"Aspect-triggered association removal: " +
"Ignoring child associations where one of the nodes is pending delete: " + childAssocPair);
"Ignoring child associations where one of the nodes is pending delete: " + childAssocPair);
}
return true;
}
@@ -1971,10 +1971,10 @@ public class DbNodeServiceImpl extends AbstractNodeServiceImpl implements Extens
@Extend(traitAPI=NodeServiceTrait.class,extensionAPI=NodeServiceExtension.class)
public NodeRef getChildByName(NodeRef nodeRef, QName assocTypeQName, String childName)
{
ParameterCheck.mandatory("childName", childName);
ParameterCheck.mandatory("nodeRef", nodeRef);
ParameterCheck.mandatory("assocTypeQName", assocTypeQName);
ParameterCheck.mandatory("childName", childName);
ParameterCheck.mandatory("nodeRef", nodeRef);
ParameterCheck.mandatory("assocTypeQName", assocTypeQName);
// Get the node
Pair<Long, NodeRef> nodePair = getNodePairNotNull(nodeRef);
Long nodeId = nodePair.getFirst();