mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user