11-27-2011 09:38 AM
12-29-2011 01:06 PM
Store storeRef = new Store(Constants.WORKSPACE_STORE, "SpacesStore");
….SNIP….
CMLDelete[] deleteCMLArray = new CMLDelete[rows.length];
for (int index = 0; index < rows.length; index++) {
ResultSetRow row = rows[index];
deleteCMLArray[index] = new CMLDelete(new Predicate(new Reference[] {new Reference(storeRef, row.getNode().getId(), null)}, null, null));
}
// Construct CML Block
CML cml = new CML();
cml.setDelete(deleteCMLArray);That should be enough to get you going with CML and the Web Services API. But for stuff like deleting spaces, you might want to consider using OpenCMIS. OpenCMIS is a Java API that can use either a SOAP Web Services binding or a RESTful Atom Pub binding. The nice thing is that you can learn how to do it once and then you'll know how to do it for all CMIS-compliant repositories.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.