A couple of more special tricks to get better performance out of

AVMSyncService.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3811 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-09-16 16:11:21 +00:00
parent 14ebe1726f
commit f5e509c18b
4 changed files with 76 additions and 9 deletions

View File

@@ -307,6 +307,22 @@ public class AVMServiceImpl implements AVMService
fAVMRepository.createDirectory(path, name);
}
/**
* Create a new directory, in an already copy on written node.
* This should only be used if you really know what you're doing.
* @param parent The parent node.
* @param name The name of the new directory.
* @return A descriptor for the newly created directory.
*/
public AVMNodeDescriptor createDirectory(AVMNodeDescriptor parent, String name)
{
if (parent == null || name == null)
{
throw new AVMBadArgumentException("Illegal null argument.");
}
return fAVMRepository.createDirectory(parent, name);
}
/**
* Create a new layered file. It must not exist.
* @param srcPath The src path. Ie the target for the layering.
@@ -1106,12 +1122,12 @@ public class AVMServiceImpl implements AVMService
* Force copy on write of a path.
* @param path The path to force.
*/
public void forceCopy(String path)
public AVMNodeDescriptor forceCopy(String path)
{
if (path == null)
{
throw new AVMBadArgumentException("Null Path.");
}
fAVMRepository.forceCopy(path);
return fAVMRepository.forceCopy(path);
}
}