AVMLockingAwareService.

A wrapper around AVMService which knows aboout locking. It works
by auto-locking on write operations or throwing an AVMLockingException
if the requested target is already locked to another user or to a
different store in a web project.
It is wired up as avmLockingAwareService, AVMLockingAwareService, and
indexingAVMLockingAwareService.  It isn't hooked into anything
else yet.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6000 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2007-06-18 04:19:35 +00:00
parent 0a95689a7e
commit 832c1b599e
5 changed files with 1012 additions and 5 deletions

View File

@@ -80,7 +80,7 @@ public class AVMServiceTestBase extends TestCase
*/
private long fStartTime;
protected TransactionService fTransactionService;
protected static TransactionService fTransactionService;
protected static IndexerAndSearcher fIndexerAndSearcher;
@@ -224,7 +224,7 @@ public class AVMServiceTestBase extends TestCase
/**
* Setup a basic tree.
*/
protected void setupBasicTree()
protected void setupBasicTree0()
throws IOException
{
fService.createDirectory("main:/", "a");
@@ -248,10 +248,13 @@ public class AVMServiceTestBase extends TestCase
writer.putContent("I am main:/a/b/c/bar");
fService.createSnapshot("main", null, null);
}
protected void setupBasicTree()
throws IOException
{
setupBasicTree0();
runQueriesAgainstBasicTree("main");
}
protected void runQueriesAgainstBasicTree(String store)