Hallo,Spaces können folgendermassen angelegt werden:
Store STORE = new Store(Constants.WORKSPACE_STORE, "SpacesStore");
SAMPLE_FOLDER = new Reference(STORE, null, "/app:company_home/cm:sample_folder");
// parent referenz erzeugen
ParentReference parentReference = new ParentReference(STORE,
null, "/app:company_home", Constants.ASSOC_CONTAINS,
Constants.createQNameString(Constants.NAMESPACE_CONTENT_MODEL, "sample_folder"));
// neuen Folder erzeugen innerhalb der ParentReference
NamedValue[] properties = new NamedValue[]{Utils.createNamedValue(Constants.PROP_NAME, "Web Service Sample Folder")};
CMLCreate create = new CMLCreate("1", parentReference, null, null, null, Constants.TYPE_FOLDER, properties);
CML cml = new CML();
cml.setCreate(new CMLCreate[]{create});
UpdateResult[] results = WebServiceFactory.getRepositoryService().update(cml);
Grüsse,Devylon