mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
transfer service : first cut of transfer "sync" and unit test.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@20941 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -108,6 +108,26 @@ public class UnitTestTransferManifestNodeFactory implements TransferManifestNode
|
||||
}
|
||||
normalNode.setParentAssocs(mappedParentAssocs);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fiddle with the child assocs
|
||||
*/
|
||||
if (newNode instanceof TransferManifestNormalNode)
|
||||
{
|
||||
TransferManifestNormalNode normalNode = (TransferManifestNormalNode) newNode;
|
||||
List<ChildAssociationRef> assocs = normalNode.getChildAssocs();
|
||||
List<ChildAssociationRef> mappedChildAssocs = new ArrayList<ChildAssociationRef>();
|
||||
for (ChildAssociationRef assoc : assocs)
|
||||
{
|
||||
NodeRef before = assoc.getChildRef();
|
||||
NodeRef mappedChildNodeRef = mapNodeRef(before);
|
||||
|
||||
ChildAssociationRef replace = new ChildAssociationRef(assoc.getTypeQName(), mappedParentNodeRef,
|
||||
assoc.getQName(), mappedChildNodeRef, assoc.isPrimary(), assoc.getNthSibling());
|
||||
mappedChildAssocs.add(replace);
|
||||
}
|
||||
normalNode.setChildAssocs(mappedChildAssocs);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fiddle with the UUID property
|
||||
|
Reference in New Issue
Block a user