04-02-2009 09:35 AM
public void majCategorie(String uuid,String nomCategorie){
Reference reference = new Reference(STORE, uuid, null);
Predicate predicate = new Predicate(new Reference[]{reference}, null, null);
CMLUpdate update = new CMLUpdate();
update.setWhere(predicate);
update.setProperty(new NamedValue[]
{
new NamedValue(Constants.PROP_NAME, false, nomCategorie, null),
});
CML cml = new CML();
cml.setUpdate(new CMLUpdate[]{update});
UpdateResult[] results = null;
try {
results = WebServiceFactory.getRepositoryService().update(cml);
logger.info("Catégorie " + nomCategorie + " mise à jour");
} catch (RepositoryFault e) {
logger.error(e);
} catch (RemoteException e) {
logger.error(e);
}
}
06-02-2009 03:58 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.