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.
nodeService.addAspect(nodeRef, aspectQName, props);
document.addAspect(aspectQName, props);
CMLAddAspect addWebableAspectToDoc = new CMLAddAspect(Constants.createQNameString(SomeCoModel.NAMESPACE_SOMECO_CONTENT_MODEL, SomeCoModel.ASPECT_SC_WEBABLE), null, null, "ref1"); // Construct CML Block CML cml = new CML(); cml.setUpdate(new CMLUpdate[] {updateDoc}); cml.setAddAspect(new CMLAddAspect[] {addWebableAspectToDoc}); // Execute CML Block UpdateResult[] results = WebServiceFactory.getRepositoryService().update(cml);