08-24-2015 06:10 AM
private static Folder createFolder(Folder target, String newFolderName) {
Map<String, String> props = new HashMap<String, String>();
props.put(PropertyIds.OBJECT_TYPE_ID, "cmis:folder");
props.put(PropertyIds.NAME, "abc");
Folder newFolder = target.createFolder(props);
return newFolder;
}
and now calling this method in main after retriving the test as below:
Folder target = (Folder) session.getObject("workspace://SpacesStore/898583d0-5c38-4dad-a297-204f45960a4c"); //retrieving test folder
Folder newFolder = createFolder(target, "abc");
08-26-2015 03:04 AM
08-27-2015 02:23 AM
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.