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

@@ -474,7 +474,7 @@ public class AVMServiceImpl implements AVMService
}
/**
* Create an AVMStore with the given name. It must not exist.
* Create an AVMStore with the given name (it must not exist).
* @param name The name to give the AVMStore.
*/
public void createStore(String name)
@@ -485,8 +485,22 @@ public class AVMServiceImpl implements AVMService
}
fAVMRepository.createAVMStore(name);
}
/**
* Create an AVMStore with the given name (it must not exist) and set store properties.
* @param name The name to give the AVMStore.
* @param props A Map of the properties to set.
*/
public void createStore(String name, Map<QName, PropertyValue> props)
{
if (name == null || !FileNameValidator.isValid(name))
{
throw new AVMBadArgumentException("Bad Name.");
}
fAVMRepository.createAVMStore(name, props);
}
/**
* Create a branch.
* @param version The version to branch from.
* @param srcPath The path to the thing to branch from.