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.
CMLCreate create = new CMLCreate("1", null, companyHomeParent.getUuid(), Constants.ASSOC_CONTAINS, null, Constants.PROP_CONTENT, contentProps);
public void updateNodeProperties(String uuid, NamedValue[] namedValueArray, Map<String, NamedValue[]> aspectToAddMap, List<String> aspectToRemoveList) throws RepositoryFault, RemoteException { Reference space = getReference(uuid); Predicate predicate = new Predicate(new Reference[] { space }, STORE, null); CMLUpdate update = new CMLUpdate(namedValueArray, predicate, null); CML cml = new CML(); if (aspectToAddMap != null && aspectToAddMap.size() > 0) { CMLAddAspect[] aspectArray = new CMLAddAspect[aspectToAddMap.size()]; int i = 0; for (String aspectName : aspectToAddMap.keySet()) { aspectArray[i++] = new CMLAddAspect(aspectName, aspectToAddMap.get(aspectName), predicate, null); } cml.setAddAspect(aspectArray); } if (aspectToRemoveList != null && aspectToRemoveList.size() > 0) { CMLRemoveAspect[] aspectArray = new CMLRemoveAspect[aspectToRemoveList.size()]; int i = 0; for (String aspectName : aspectToRemoveList) { aspectArray[i++] = new CMLRemoveAspect(aspectName, predicate, null); } cml.setRemoveAspect(aspectArray); } cml.setUpdate(new CMLUpdate[] { update }); UpdateResult[] results = getRepositoryService().update(cml); Reference newSpace = results[0].getDestination(); log.info("Space " + newSpace.getPath() + " updated."); }