03-27-2009 04:10 AM
ParentReference parentReference3 = new ParentReference(STORE,sampleFolder.getUuid(), null, Constants.ASSOC_CONTAINS,
Constants.createQNameString(Constants.NAMESPACE_CONTENT_MODEL, "toto_"+ newtotoId));
Predicate pred = new Predicate();
pred.setStore(STORE);
pred.setNodes(new Reference[] { ref });
CMLCopy copy = new CMLCopy();
copy.setTo(parentReference3);
copy.setWhere(pred);
copy.setAssociationType(Constants.ASSOC_CONTAINS)
cml = new CML();
pred.setNodes(new Reference[] { ref });
cml.setCopy(new CMLCopy[] { copy });
UpdateResult[] result = WebServiceFactory.getRepositoryService().update(cml);
03-27-2009 08:17 AM
copy.setAssociationType(Constants.ASSOC_CONTAINS);
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.