Added two more special purpose calls, to improve flatten performance from

rotten to ok.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3809 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-09-15 21:26:26 +00:00
parent dfe49bf51b
commit 14ebe1726f
6 changed files with 105 additions and 4 deletions

View File

@@ -1083,4 +1083,35 @@ public class AVMServiceImpl implements AVMService
}
fAVMRepository.link(parent, name, child);
}
/**
* Flatten a direct child of a layered directory. This does
* the equivalent of removing the given child from the directory
* and then doing an uncover. This routine makes many dangerous
* assumptions and is only for use by AVMSyncService. Don't use it
* if you don't know precisely what you are doing.
* @param lDir The layered directory node.
* @param name The name to flatten.
*/
public void flatten(AVMNodeDescriptor lDir, String name)
{
if (lDir == null || name == null)
{
throw new AVMBadArgumentException("Illegal Null Argument.");
}
fAVMRepository.flatten(lDir, name);
}
/**
* Force copy on write of a path.
* @param path The path to force.
*/
public void forceCopy(String path)
{
if (path == null)
{
throw new AVMBadArgumentException("Null Path.");
}
fAVMRepository.forceCopy(path);
}
}