As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Store store = new Store(StoreEnum.workspace, "SpacesStore"); Reference reference = new Reference(store, null, path); ParentReference parentReference = new ParentReference(store, reference.getUuid(), reference.getPath(), Constants.ASSOC_CONTAINS, Constants.createQNameString(Constants.NAMESPACE_CONTENT_MODEL, name)); NamedValue[] properties = new NamedValue[]{new NamedValue(Constants.PROP_NAME, name)}; CMLCreate create = new CMLCreate(name, parentReference, Constants.TYPE_FOLDER, properties); CML cml = new CML(); cml.setCreate(new CMLCreate[]{create}); this.repositoryService.update(cml);