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.
NamedValue valueName = new NamedValue(Constants.PROP_NAME, false, folderName, null); folderName = Constants.createQNameString(Constants.NAMESPACE_CONTENT_MODEL, folderName); ParentReference parentRef = new ParentReference(parent.getStore(), parent.getUuid(), parent.getPath(), Constants.ASSOC_CONTAINS, folderName); CMLCreate newFolder = new CMLCreate(null, parentRef, null, Constants.ASSOC_CONTAINS, folderName, Constants.TYPE_FOLDER, new NamedValue[]{valueName}); CML cml = new CML(); cml.setCreate(new CMLCreate[]{newFolder}); UpdateResult[] result = repositoryService.update(cml);