05-11-2006 08:39 AM
05-13-2006 02:56 AM
07-12-2006 04:43 PM
NamedValue[] properties = new NamedValue[] {
Utils.createNamedValue(Constants.PROP_NAME, newFile.getName()),
Utils.createNamedValue(Constants.PROP_TITLE, title),
Utils.createNamedValue(Constants.PROP_DESCRIPTION, description),
Utils.createNamedValue("{http://www.alfresco.org/model/content/1.0}author", "Test Author") };
CMLCreate create = new CMLCreate("1", parentReference, Constants.TYPE_CONTENT, properties);
CMLAddAspect addAspect = new CMLAddAspect("{http://www.alfresco.org/model/content/1.0}author", null, null, "id1");
CML cml = new CML();
cml.setCreate(new CMLCreate[] { create });
cml.setAddAspect(new CMLAddAspect[] { addAspect });
UpdateResult[] result = WebServiceFactory.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.