mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user