03-13-2006 03:49 AM
05-16-2007 06:59 AM
Here is some sample code for creating Stores:
$storename = "New Store";
$properties[0] = new NamedValue(
"{http://www.alfresco.org/model/content/1.0}name", $storename);
$properties[1] = new NamedValue(
"{http://www.alfresco.org/model/content/1.0}title", $storename);
$properties[2] = new
NamedValue("{http://www.alfresco.org/model/content/1.0}description",
"test");
$reference = new Reference($store, $focus->settings['alfresco_space'] );
$parentreference = new ParentReference($store, $reference->getUuid(),
$reference->getPath(), ASSOC_CONTAINS, createQNameString(
NAMESPACE_CONTENT_MODEL, $storename) );
$create = new CMLCreate($storename, $parentreference, TYPE_FOLDER,
$properties);
$cml = new CML();
$cmllist[0] = $create;
$cml->setCreate($create );
$results = @$repository_service->update($cml);
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.