Merged V3.2 to HEAD

16714: WCM/AVM fixes - ETHREEOH-2697 & ETHREEOH-1847
    16802: Merged V3.1 to V3.2
         16801: AVMTestSuite - add couple of missing unit tests
    16810: WCM locking - minor improvement to include lock owner (when trying to "grabLock")


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16925 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2009-10-14 14:37:18 +00:00
parent 8d2f4f8dd2
commit 3db59a0960
13 changed files with 504 additions and 488 deletions

View File

@@ -451,6 +451,11 @@ public class AVMRepository
* The name to give the new AVMStore.
*/
public void createAVMStore(String name)
{
createAVMStore(name, null);
}
public void createAVMStore(String name, Map<QName, PropertyValue> props)
{
AlfrescoTransactionSupport.bindListener(fCreateStoreTxnListener);
if (getAVMStoreByName(name) != null)
@@ -465,6 +470,12 @@ public class AVMRepository
rootNode.setStoreNew(null);
fAVMNodeDAO.update(rootNode);
if (props != null)
{
setStoreProperties(name, props);
}
fCreateStoreTxnListener.storeCreated(name);
}