As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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);