03-10-2010 08:12 AM
ParentReference parentReference = new ParentReference();
parentReference.setStore(STORE);
parentReference.setUuid(node); // Nodo del contenido
parentReference.setChildName(fileName); //Nombre del contenido
parentReference.setAssociationType(Constants.ASSOC_CONTAINS);
parentReference.setPath(getXpathSpaceName(properties.getProperty("efactura_processed"))); // espacio destino
Reference sourceRef = new Reference();
sourceRef.setStore(STORE);
sourceRef.setUuid(node); // Nodo del contenido (otra vez)
CMLMove cmlmove = new CMLMove();
cmlmove.setTo(parentReference);
cmlmove.setWhere(new Predicate(new Reference[]{sourceRef}, null, null));
CML cml = new CML();
cml.setMove(new CMLMove[]{cmlmove});
UpdateResult[] results = WebServiceFactory.getRepositoryService().update(cml);
03-11-2010 03:07 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.