01-20-2011 10:11 AM
01-20-2011 11:06 AM
ParentReference mainParentReference = …
CMLCreate create1 = new CMLCreate();
…
// now create a reference to the to-be-created node
ParentReference previousNodeParentReference = new ParentReference();
previousNodeParentReference.setPath( mainParentReference.getPath() + "/" + ISO9075.encode( mainParentreference.getChildName() ) );
01-21-2011 05:15 AM
01-27-2011 07:59 AM
…
// Create folder (parentFolder where you want to create your folder)
CMLCreate createFolder = new CMLCreate("1", parentFolder, null, Constants.ASSOC_CONTAINS, null, Constants.TYPE_FOLDER, folderProperties);
// Create document in newly future created folder (notice id "1" - 3rd parameter)
CMLCreate create1 = new CMLCreate("2", null, "1", Constants.ASSOC_CONTAINS, null, documentTypeQName, properties);
// Create another document
CMLCreate create2 = new CMLCreate("2", null, "1", Constants.ASSOC_CONTAINS, null, documentTypeQName1, properties2);
cml.setCreate(new CMLCreate[] { createFolder, create1, create2 });
UpdateResult[] results = getRepositoryService().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.