mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Introduces a new variant on the link() call that makes the update() call
way faster in the worst case, i.e. tolerable so far. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3808 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1065,4 +1065,22 @@ public class AVMServiceImpl implements AVMService
|
||||
}
|
||||
fAVMRepository.link(parentPath, name, toLink);
|
||||
}
|
||||
|
||||
/**
|
||||
* This is a more dangerous version of link, which assumes
|
||||
* that copy on write has occurred for the parent node. This is
|
||||
* an internal call. Don't use it if you don't know precisely
|
||||
* what you are doing.
|
||||
* @param parent The parent node.
|
||||
* @param name The name to give the child.
|
||||
* @param child The child node to link.
|
||||
*/
|
||||
public void link(AVMNodeDescriptor parent, String name, AVMNodeDescriptor child)
|
||||
{
|
||||
if (parent == null || child == null)
|
||||
{
|
||||
throw new AVMBadArgumentException("Illegal Null Argument.");
|
||||
}
|
||||
fAVMRepository.link(parent, name, child);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user