mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added link call to AVMService. It essentially creates a hard link
without the bad aftertaste. It's needed for the AVMSyncService's update method which will move new versions of nodes from one AVM tree to another. Also a checkpoint for AVMSyncService. One can safely call compare and get back an empty List of AVMDifferences. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3784 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1135,4 +1135,17 @@ public class AVMStoreImpl implements AVMStore, Serializable
|
||||
Lookup lPath = lookup(version, path, false, false);
|
||||
return lPath.getCurrentNode().getAcl();
|
||||
}
|
||||
|
||||
/**
|
||||
* Link a node intro a directory, directly.
|
||||
* @param parentPath The path to the directory.
|
||||
* @param name The name to give the parent.
|
||||
* @param toLink The node to link.
|
||||
*/
|
||||
public void link(String parentPath, String name, AVMNodeDescriptor toLink)
|
||||
{
|
||||
Lookup lPath = lookupDirectory(-1, parentPath, true);
|
||||
DirectoryNode dir = (DirectoryNode)lPath.getCurrentNode();
|
||||
dir.link(lPath, name, toLink.getId());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user